Switch default matching method for videos to 'sequential' in COLMAP (#2912)

default matching method for video to sequential for COLMAP
This commit is contained in:
Justin Kerr authored and GitHub committed 2024-02-13 20:26:17 +00:00
1 parent eb9bcb577d
commit 7f9def1ff0
1 file changed
+5
@@ -16,6 +16,7 @@
import shutil
from dataclasses import dataclass
from typing import Literal
from nerfstudio.process_data import equirect_utils, process_data_utils
from nerfstudio.process_data.colmap_converter_to_nerfstudio_dataset import ColmapConverterToNerfstudioDataset
@@ -36,6 +37,10 @@ class VideoToNerfstudioDataset(ColmapConverterToNerfstudioDataset):
"""Target number of frames to use per video, results may not be exact."""
percent_radius_crop: float = 1.0
"""Create circle crop mask. The radius is the percent of the image diagonal."""
matching_method: Literal["exhaustive", "sequential", "vocab_tree"] = "sequential"
"""Feature matching method to use. Vocab tree is recommended for a balance of speed
and accuracy. Exhaustive is slower but more accurate. Sequential is faster but
should only be used for videos."""
def main(self) -> None:
"""Process video into a nerfstudio dataset."""