mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 22:56:03 +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
@@ -16,7 +16,7 @@ class DatasetInputs:
|
||||
camera_to_world: torch.tensor = None
|
||||
mask_filenames: List[str] = None
|
||||
depth_filenames: List[str] = None
|
||||
scene_bounds: SceneBounds = SceneBounds()
|
||||
scene_box: SceneBox = SceneBox()
|
||||
semantics: Semantics = Semantics()
|
||||
point_cloud: PointCloud = PointCloud()
|
||||
alpha_color: Optional[TensorType[3]] = None
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"import numpy as np\n",
|
||||
"import torch\n",
|
||||
"import mediapy as media\n",
|
||||
"from nerfstudio.data.structs import SceneBounds\n",
|
||||
"from nerfstudio.data.scene_box import SceneBox\n",
|
||||
"from nerfstudio.cameras.cameras import PinholeCamera\n",
|
||||
"import time"
|
||||
]
|
||||
@@ -142,15 +142,15 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# draw scene bounds in the viewer\n",
|
||||
"# draw scene box in the viewer\n",
|
||||
"s = 1\n",
|
||||
"scene_bounds = SceneBounds(aabb=torch.tensor([[-s, -s, -s], [s, s, s]]))\n",
|
||||
"scene_bounds_json = scene_bounds.to_json()\n",
|
||||
"scene_box = SceneBox(aabb=torch.tensor([[-s, -s, -s], [s, s, s]]))\n",
|
||||
"scene_box_json = scene_box.to_json()\n",
|
||||
"\n",
|
||||
"# draw scene bounds in the viewer\n",
|
||||
"vis[\"sceneState/sceneBounds\"].write(scene_bounds_json)\n",
|
||||
"# draw scene box in the viewer\n",
|
||||
"vis[\"sceneState/sceneBox\"].write(scene_box_json)\n",
|
||||
"\n",
|
||||
"# draw scene bounds in plotly\n",
|
||||
"# draw scene box in plotly\n",
|
||||
"import plotly.graph_objects as go\n",
|
||||
"\n",
|
||||
"# TODO:"
|
||||
@@ -494,7 +494,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3.8.13 ('nerfactory')",
|
||||
"display_name": "Python 3.8.12 ('nerfactory')",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
@@ -508,11 +508,11 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.13"
|
||||
"version": "3.8.12"
|
||||
},
|
||||
"vscode": {
|
||||
"interpreter": {
|
||||
"hash": "100252972d4ee5286ab455ef1c778abde05b4affca9d1be78633d3797abf7e8c"
|
||||
"hash": "34c28001ff35fb390494047002768a8182dcf55b1b11415165e62ea61557ab83"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user