update Camera models in data processing script (#2997)

* update colmap camera models
This commit is contained in:
Daewoon Kim authored and GitHub committed 2024-03-11 12:20:25 +02:00
1 parent ae6c46cfea
commit 9960de0e84
2 files changed
+5 -1

No files matched your search

@@ -29,7 +29,7 @@ from nerfstudio.utils.rich_utils import CONSOLE
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
@@ -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,
}