mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 06:35:36 +08:00
* Adds ns-process-data images tests and fixes #1586 * Fix missing colmap and ffmpeg in github actions
This commit is contained in:
1 parent
d9a391f79a
commit
2b8d5a9e5c
4 files changed
+283
-18
No files matched your search
@@ -35,7 +35,7 @@ from nerfstudio.data.utils.colmap_parsing_utils import (
|
||||
qvec2rotmat,
|
||||
read_cameras_binary,
|
||||
read_images_binary,
|
||||
read_points3d_binary,
|
||||
read_points3D_binary,
|
||||
)
|
||||
from nerfstudio.process_data.process_data_utils import CameraModel
|
||||
from nerfstudio.utils import colormaps
|
||||
@@ -458,7 +458,7 @@ def colmap_to_json(
|
||||
applied_transform = np.eye(4)[:3, :]
|
||||
applied_transform = applied_transform[np.array([1, 0, 2]), :]
|
||||
applied_transform[2, :] *= -1
|
||||
out["applied_transform"] = applied_transform
|
||||
out["applied_transform"] = applied_transform.tolist()
|
||||
|
||||
with open(output_dir / "transforms.json", "w", encoding="utf-8") as f:
|
||||
json.dump(out, f, indent=4)
|
||||
@@ -515,7 +515,7 @@ def create_sfm_depth(
|
||||
# ptid_to_info = recon.points3D
|
||||
# cam_id_to_camera = recon.cameras
|
||||
# im_id_to_image = recon.images
|
||||
ptid_to_info = read_points3d_binary(recon_dir / "points3D.bin")
|
||||
ptid_to_info = read_points3D_binary(recon_dir / "points3D.bin")
|
||||
cam_id_to_camera = read_cameras_binary(recon_dir / "cameras.bin")
|
||||
im_id_to_image = read_images_binary(recon_dir / "images.bin")
|
||||
|
||||
|
||||
Reference in new issue
Block a user