Skip to content

Commit

Permalink
Merge branch 'main' into brent/ruff_output_format
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi authored Jan 19, 2024
2 parents fdd1fc7 + f55bd04 commit b587e54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nerfstudio/data/dataparsers/nerfstudio_dataparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ def _generate_dataparser_outputs(self, split="train"):
# - applied_transform contains the transformation to saved coordinates from original data coordinates.
applied_transform = None
colmap_path = self.config.data / "colmap/sparse/0"
if "applied_transform" not in meta and colmap_path.exists():
if "applied_transform" in meta:
applied_transform = torch.tensor(meta["applied_transform"], dtype=transform_matrix.dtype)
elif colmap_path.exists():
# For converting from colmap, this was the effective value of applied_transform that was being
# used before we added the applied_transform field to the output dataformat.
meta["applied_transform"] = [[0, 1, 0, 0], [1, 0, 0, 0], [0, 0, -1, 0]]
Expand Down

0 comments on commit b587e54

Please sign in to comment.