mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-28 20:10:05 +08:00
Merge branch 'main' of https://github.com/plenoptix/nerfactory into terrance/dreamembedding
This commit is contained in:
commit
44b9ef5604
59 files changed
+1750
-1014
No files matched your search
@@ -16,7 +16,9 @@ from nerfstudio.data.utils.colmap_parsing_utils import (
|
||||
write_cameras_binary,
|
||||
write_images_binary,
|
||||
)
|
||||
from scripts.process_data import ProcessImages
|
||||
from nerfstudio.process_data.images_to_nerstudio_dataset import (
|
||||
ImagesToNerfstudioDataset,
|
||||
)
|
||||
|
||||
|
||||
def random_quaternion(num_poses: int):
|
||||
@@ -79,8 +81,10 @@ def test_process_images_skip_colmap(tmp_path: Path):
|
||||
(tmp_path / "mocked_bin" / "colmap").touch(mode=0o777)
|
||||
(tmp_path / "mocked_bin" / "ffmpeg").touch(mode=0o777)
|
||||
|
||||
# Run ProcessImages
|
||||
cmd = ProcessImages(tmp_path / "images", tmp_path / "nerfstudio", colmap_model_path=sparse_path, skip_colmap=True)
|
||||
# Convert images into a NerfStudio dataset
|
||||
cmd = ImagesToNerfstudioDataset(
|
||||
data=tmp_path / "images", output_dir=tmp_path / "nerfstudio", colmap_model_path=sparse_path, skip_colmap=True
|
||||
)
|
||||
cmd.main()
|
||||
os.environ["PATH"] = old_path
|
||||
|
||||
|
||||
@@ -168,7 +168,11 @@ def test_equall_nerfacc():
|
||||
# time2 = time.time()
|
||||
|
||||
# time3 = time.time()
|
||||
t_min_nerfacc, t_max_nerfacc = nerfacc.ray_aabb_intersect(origins, directions, aabb)
|
||||
t_min_nerfacc, t_max_nerfacc, _ = nerfacc.ray_aabb_intersect(
|
||||
origins, directions, aabb[None, :], near_plane=0, far_plane=1e10, miss_value=1e10
|
||||
)
|
||||
t_max_nerfacc = t_max_nerfacc.squeeze(-1)
|
||||
t_min_nerfacc = t_min_nerfacc.squeeze(-1)
|
||||
# time4 = time.time()
|
||||
|
||||
# print("pytorch ", time2-time1)
|
||||
|
||||
Reference in new issue
Block a user