zhanghang1989 / zhanghang1989/PyTorch-Encoding
Failed to download coco dataset with scripts.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 448
- PR merge metrics
- No merged PRs in 30d
Description
Hi, when I run
python scripts/prepare_coco.py
I met an error:
UserWarning: File ~/.encoding/data/stuff_annotations_trainval2017.zip is downloaded but the content hash does not match. The repo may be outdated or download may be incomplete. If the "repo_url" is overridden, consider switching to the default repo.
It seems that the verification of check_sha1 failed.
And it seems there is a bug in this line: https://github.com/zhanghang1989/PyTorch-Encoding/blob/master/scripts/prepare_coco.py#L54
Try to remove a dir with os.remove(), also try to delete the whole dir ~/.encoding/data/.
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running python scripts/prepare_coco.py and inspect the cleanup and hash-verification logic around line 54 of scripts/prepare_coco.py. Check how ~/.encoding/data/ and the downloaded archive are handled after a failed checksum. Done means the script handles the failed download without the reported directory-removal error and can complete COCO preparation with a valid archive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data, machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100