cvg / Hierarchical-Localization

Visual localization made easy with hloc
Apache License 2.0
3.19k stars 592 forks source link

Error downloading D2-Net pre-trained model #368

Closed crcz25 closed 8 months ago

crcz25 commented 8 months ago

I encountered an error while trying to download the D2-Net pre-trained model using the provided notebook _pipelineSfM.ipynb. Below is the error message:

error_d2net

It seems like there is an issue with the command wget returning a non-zero exit status 4. I believe this error is impeding the successful download of the model.

Steps to Reproduce:

  1. Modify the setup cell where the paths and the configuration of the extractor and matcher are set with the following:
    images = Path("datasets/South-Building/images/")
    outputs = Path("outputs/sfm/")
    sfm_pairs = outputs / "pairs-netvlad.txt"
    sfm_dir = outputs / "sfm_d2net+ratio"
    retrieval_conf = extract_features.confs["netvlad"]
    feature_conf = extract_features.confs["d2net-ss"]
    matcher_conf = match_features.confs["NN-ratio"]
  2. Execute the notebook as usual.
  3. Observe the error message mentioned above.

Expected Behavior:
The D2-Net pre-trained model should be downloaded successfully without any errors.

Additional Information:

Thank you for your attention to this matter. Please reach out to me if any further information is needed to address this issue.

Best Regards, Carlos

sarlinpe commented 8 months ago

PR https://github.com/cvg/Hierarchical-Localization/pull/369 should fix your issue.