Scale scene based on config. (#448)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-09-16 09:01:41 -07:00
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