MinimalDataParser add options, allow Nerfstudio data format to specify test indices (#1541)

* MinimalDataParser add options, allow Nerfstudio data format to specify test indices

* Switch from indices to filenames and add tests
This commit is contained in:
Jonáš Kulhánek authored and GitHub committed 2023-03-09 19:14:24 +01:00
1 parent 1f8a07c10e
commit c61d3e9387
5 files changed
+158 -19

No files matched your search

+5
View File
@@ -455,6 +455,11 @@ def colmap_to_json(
out = parse_colmap_camera_params(cam_id_to_camera[1])
out["frames"] = frames
applied_transform = np.eye(4)[:3, :]
applied_transform = applied_transform[np.array([1, 0, 2, 3]), :]
applied_transform[2, :] *= -1
out["applied_transform"] = applied_transform
with open(output_dir / "transforms.json", "w", encoding="utf-8") as f:
json.dump(out, f, indent=4)