Skip to content

Commit

Permalink
update Camera models in data processing script (nerfstudio-project#2997)
Browse files Browse the repository at this point in the history
* update colmap camera models
  • Loading branch information
wooni-github authored and ArpegorPSGH committed Jun 22, 2024
1 parent ad4f92b commit 2d3043c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class ColmapConverterToNerfstudioDataset(BaseConverterToNerfstudioDataset):
"""Base class to process images or video into a nerfstudio dataset using colmap"""

camera_type: Literal["perspective", "fisheye", "equirectangular"] = "perspective"
camera_type: Literal["perspective", "fisheye", "equirectangular", "pinhole", "simple_pinhole"] = "perspective"
"""Camera model to use."""
matching_method: Literal["exhaustive", "sequential", "vocab_tree"] = "vocab_tree"
"""Feature matching method to use. Vocab tree is recommended for a balance of speed
Expand Down
4 changes: 4 additions & 0 deletions nerfstudio/process_data/process_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@ class CameraModel(Enum):
OPENCV = "OPENCV"
OPENCV_FISHEYE = "OPENCV_FISHEYE"
EQUIRECTANGULAR = "EQUIRECTANGULAR"
PINHOLE = "PINHOLE"
SIMPLE_PINHOLE = "SIMPLE_PINHOLE"


CAMERA_MODELS = {
"perspective": CameraModel.OPENCV,
"fisheye": CameraModel.OPENCV_FISHEYE,
"equirectangular": CameraModel.EQUIRECTANGULAR,
"pinhole": CameraModel.PINHOLE,
"simple_pinhole": CameraModel.SIMPLE_PINHOLE,
}


Expand Down

0 comments on commit 2d3043c

Please sign in to comment.