agimus-project / happypose

Toolbox and trackers for object pose-estimation. Based on the work CosyPose and MegaPose
https://agimus-project.github.io/happypose/
BSD 2-Clause "Simplified" License
23 stars 9 forks source link

download.py fails for some files (dev) #50

Open cifkam opened 1 year ago

cifkam commented 1 year ago

Following the instructions in README.md in the current dev branch for downloading the files, some of the commands fails, e.g:

python -m happypose.toolbox.utils.download --detections=ycbv_posecnn

outputs

2023-07-10 16:36:22 ERROR : https://www.paris.inria.fr/archive_ylabbeprojectsdata/cosypose/saved_detections/ycbv_posecnn.pkl/: error reading source root directory: error listing "": directory not found
2023-07-10 16:36:22 ERROR : Attempt 1/3 failed with 1 errors and: error listing "": directory not found
2023-07-10 16:36:22 ERROR : https://www.paris.inria.fr/archive_ylabbeprojectsdata/cosypose/saved_detections/ycbv_posecnn.pkl/: error reading source root directory: error listing "": directory not found
2023-07-10 16:36:22 ERROR : Attempt 2/3 failed with 1 errors and: error listing "": directory not found
2023-07-10 16:36:22 ERROR : https://www.paris.inria.fr/archive_ylabbeprojectsdata/cosypose/saved_detections/ycbv_posecnn.pkl/: error reading source root directory: error listing "": directory not found
2023-07-10 16:36:22 ERROR : Attempt 3/3 failed with 1 errors and: error listing "": directory not found
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.6s
Failed to copyto: error listing "": directory not found

It seems there is a problem with the + "/" in the download.py script, so it assumes I am trying to download a directory instead of a file.

The same occurs e.g. when downloading the extra files: python -m happypose.toolbox.utils.download --bop_extra_files=ycbv.