mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 23:38:42 +08:00
Scale scene based on config. (#448)
This commit is contained in:
1 parent
25c8fc31a8
commit
ee671ce289
1 file changed
+1
-1
@@ -67,7 +67,7 @@ class Nerfactory(DataParser):
|
|||||||
|
|
||||||
# Scale poses
|
# Scale poses
|
||||||
scale_factor = 1.0 / torch.max(torch.abs(poses[:, :3, 3]))
|
scale_factor = 1.0 / torch.max(torch.abs(poses[:, :3, 3]))
|
||||||
poses[:, :3, 3] *= scale_factor
|
poses[:, :3, 3] *= scale_factor * self.config.scale_factor
|
||||||
|
|
||||||
# in x,y,z order
|
# in x,y,z order
|
||||||
# assumes that the scene is centered at the origin
|
# assumes that the scene is centered at the origin
|
||||||
|
|||||||
Reference in new issue
Block a user