zhanghang1989 / zhanghang1989/PyTorch-Encoding

Failed to download coco dataset with scripts.

Open
#105 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.