Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: File not found or corrupted. #20

Open
zzzyzh opened this issue Dec 24, 2023 · 1 comment
Open

RuntimeError: File not found or corrupted. #20

zzzyzh opened this issue Dec 24, 2023 · 1 comment

Comments

@zzzyzh
Copy link

zzzyzh commented Dec 24, 2023

Total message:
python voc_sbd.py
Using downloaded and verified file: ./PASCAL-5i/VOCtrainval_11-May-2012.tar
Extracting ./PASCAL-5i/VOCtrainval_11-May-2012.tar to ./PASCAL-5i
Downloading https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/semantic_contours/benchmark.tgz to ./PASCAL-5i/benchmark.tgz
1419540480it [09:34, 2468838.86it/s]
Extracting ./PASCAL-5i/benchmark.tgz to ./PASCAL-5i
Downloading https://www.cs.cornell.edu/~bharathh/ to ./PASCAL-5i/train_noval.txt
21504it [00:00, 77987.82it/s]
Traceback (most recent call last):
File "voc_sbd.py", line 917, in
run_VOCSBDSegmentation5i_from_scratch()
File "voc_sbd.py", line 682, in run_VOCSBDSegmentation5i_from_scratch
voc = VOCSBDSegmentation5i(roots=roots_path,
File "voc_sbd.py", line 282, in init
super().init(*args, **kwargs)
File "voc_sbd.py", line 89, in init
self.sbd = SBDataset(root=roots or root_sbd,
File "/home/miniconda3/envs/msa/lib/python3.8/site-packages/torchvision/datasets/sbd.py", line 83, in init
download_url(self.voc_train_url, sbd_root, self.voc_split_filename, self.voc_split_md5)
File "/home/miniconda3/envs/msa/lib/python3.8/site-packages/torchvision/datasets/utils.py", line 152, in download_url
raise RuntimeError("File not found or corrupted.")
RuntimeError: File not found or corrupted.

What should I do?

@lizhaoliu-Lec
Copy link
Owner

The error indicates that the downloaded file may be incomplete. Check the benchmark.tgz file or other related files to see if they are completely downloaded or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants