mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 03:14:00 +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_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
|
||||
# assumes that the scene is centered at the origin
|
||||
|
||||
Reference in new issue
Block a user