Skip to content
Snippets Groups Projects
Unverified Commit 70162ace authored by Ily's avatar Ily Committed by GitHub
Browse files

Update colmap2nerf.py

parent 1e88f79c
No related branches found
No related tags found
No related merge requests found
......@@ -85,15 +85,13 @@ def run_colmap(args):
sys.exit(1)
if os.path.exists(db):
os.remove(db)
match_cmd = f"colmap {args.colmap_matcher}_matcher --SiftMatching.guided_matching=true --database_path {db}"
if args.vocab_path:
match_cmd += f" --VocabTreeMatching.vocab_tree_path {args.vocab_path}"
do_system(f"colmap feature_extractor --ImageReader.camera_model {args.colmap_camera_model} --ImageReader.camera_params \"{args.colmap_camera_params}\" --SiftExtraction.estimate_affine_shape=true --SiftExtraction.domain_size_pooling=true --ImageReader.single_camera 1 --database_path {db} --image_path {images}")
do_system(match_cmd)
try:
shutil.rmtree(sparse)
except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment