Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
bb22190
1
Parent(s):
090676f
Initial commit
Browse files- .gitattributes +1 -0
- .gitignore +0 -3
- examples/002.png +3 -0
- examples/004.png +3 -0
- examples/005.png +3 -0
- examples/013.png +3 -0
- examples/016.png +3 -0
- examples/019.png +3 -0
- examples/020.png +3 -0
- examples/025.png +3 -0
- examples/037.png +3 -0
- examples/teaser.png +3 -0
- gslrm/model/gaussians_renderer.py +7 -6
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
.gitignore
CHANGED
|
@@ -36,9 +36,6 @@ outputs/
|
|
| 36 |
*.ply
|
| 37 |
*.mp4
|
| 38 |
|
| 39 |
-
# Examples (if large)
|
| 40 |
-
examples/
|
| 41 |
-
|
| 42 |
# IDE
|
| 43 |
.vscode/
|
| 44 |
.idea/
|
|
|
|
| 36 |
*.ply
|
| 37 |
*.mp4
|
| 38 |
|
|
|
|
|
|
|
|
|
|
| 39 |
# IDE
|
| 40 |
.vscode/
|
| 41 |
.idea/
|
examples/002.png
ADDED
|
Git LFS Details
|
examples/004.png
ADDED
|
Git LFS Details
|
examples/005.png
ADDED
|
Git LFS Details
|
examples/013.png
ADDED
|
Git LFS Details
|
examples/016.png
ADDED
|
Git LFS Details
|
examples/019.png
ADDED
|
Git LFS Details
|
examples/020.png
ADDED
|
Git LFS Details
|
examples/025.png
ADDED
|
Git LFS Details
|
examples/037.png
ADDED
|
Git LFS Details
|
examples/teaser.png
ADDED
|
Git LFS Details
|
gslrm/model/gaussians_renderer.py
CHANGED
|
@@ -126,6 +126,13 @@ def build_scaling_rotation(s, r):
|
|
| 126 |
return L
|
| 127 |
|
| 128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
# copied from: utils.sh_utils
|
| 130 |
C0 = 0.28209479177387814
|
| 131 |
C1 = 0.4886025119029199
|
|
@@ -298,12 +305,6 @@ class Camera(nn.Module):
|
|
| 298 |
# modified from scene/gaussian_model.py
|
| 299 |
class GaussianModel:
|
| 300 |
def setup_functions(self):
|
| 301 |
-
def build_covariance_from_scaling_rotation(scaling, scaling_modifier, rotation):
|
| 302 |
-
L = build_scaling_rotation(scaling_modifier * scaling, rotation)
|
| 303 |
-
actual_covariance = L @ L.transpose(1, 2)
|
| 304 |
-
symm = strip_symmetric(actual_covariance)
|
| 305 |
-
return symm
|
| 306 |
-
|
| 307 |
self.scaling_activation = torch.exp
|
| 308 |
self.inv_scaling_activation = torch.log
|
| 309 |
self.rotation_activation = torch.nn.functional.normalize
|
|
|
|
| 126 |
return L
|
| 127 |
|
| 128 |
|
| 129 |
+
def build_covariance_from_scaling_rotation(scaling, scaling_modifier, rotation):
|
| 130 |
+
L = build_scaling_rotation(scaling_modifier * scaling, rotation)
|
| 131 |
+
actual_covariance = L @ L.transpose(1, 2)
|
| 132 |
+
symm = strip_symmetric(actual_covariance)
|
| 133 |
+
return symm
|
| 134 |
+
|
| 135 |
+
|
| 136 |
# copied from: utils.sh_utils
|
| 137 |
C0 = 0.28209479177387814
|
| 138 |
C1 = 0.4886025119029199
|
|
|
|
| 305 |
# modified from scene/gaussian_model.py
|
| 306 |
class GaussianModel:
|
| 307 |
def setup_functions(self):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 308 |
self.scaling_activation = torch.exp
|
| 309 |
self.inv_scaling_activation = torch.log
|
| 310 |
self.rotation_activation = torch.nn.functional.normalize
|