mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 23:38:42 +08:00
Rename scene bounds (#605)
This commit is contained in:
1 parent
bc2aa64aba
commit
4110bd7a3e
25 files changed
+98
-102
No files matched your search
@@ -31,7 +31,7 @@ from nerfstudio.data.dataparsers.base_dataparser import (
|
||||
DataParserConfig,
|
||||
DataparserOutputs,
|
||||
)
|
||||
from nerfstudio.data.scene_box import SceneBounds
|
||||
from nerfstudio.data.scene_box import SceneBox
|
||||
from nerfstudio.utils.io import load_from_json
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ class Nerfstudio(DataParser):
|
||||
# in x,y,z order
|
||||
# assumes that the scene is centered at the origin
|
||||
aabb_scale = self.config.scene_scale
|
||||
scene_bounds = SceneBounds(
|
||||
scene_box = SceneBox(
|
||||
aabb=torch.tensor(
|
||||
[[-aabb_scale, -aabb_scale, -aabb_scale], [aabb_scale, aabb_scale, aabb_scale]], dtype=torch.float32
|
||||
)
|
||||
@@ -160,6 +160,6 @@ class Nerfstudio(DataParser):
|
||||
dataset_inputs = DataparserOutputs(
|
||||
image_filenames=image_filenames,
|
||||
cameras=cameras,
|
||||
scene_bounds=scene_bounds,
|
||||
scene_box=scene_box,
|
||||
)
|
||||
return dataset_inputs
|
||||
Reference in new issue
Block a user