zju3dv / DetectorFreeSfM

Code for "Detector-Free Structure from Motion", CVPR 2024
Apache License 2.0
612 stars 39 forks source link

Error running demo #33

Closed bhack closed 6 months ago

bhack commented 6 months ago

Running the demo from Readme: python eval_dataset.py +demo=dfsfm.yaml

It is going to fail with missing models/images.bin

Error executing job with overrides: ['+demo=dfsfm.yaml']
Traceback (most recent call last):
  File "/workspace/DetectorFreeSfM/eval_dataset.py", line 195, in main
    globals()[cfg.type](cfg)
  File "/workspace/DetectorFreeSfM/eval_dataset.py", line 153, in eval_dataset
    metric_dict = eval_core(scene_paths, cfg)
  File "/workspace/DetectorFreeSfM/eval_dataset.py", line 63, in eval_core
    metric_dict = DetectorFreeSfM(
  File "/workspace/DetectorFreeSfM/src/detectorfree_sfm.py", line 142, in DetectorFreeSfM
    best_model_id = get_best_colmap_index(colmap_coarse_dir)
  File "/workspace/DetectorFreeSfM/src/utils/colmap/eval_helper.py", line 166, in get_best_colmap_index
    images_bin = read_images_binary(colmap_img_file)
  File "/workspace/DetectorFreeSfM/src/utils/colmap/read_write_model.py", line 232, in read_images_binary
    with open(path_to_model_file, "rb") as fid:
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/DetectorFreeSfM/SfM_dataset/example_dataset/example_scene/DetectorFreeSfM_loftr_official_coarse_only__scratch_no_intrin/colmap_coarse/models/images.bin'