VOCSegmentation -- RuntimeError: Dataset not found or corrupted. You can use download=True to download it
See original GitHub issue๐ Bug
I have downloaded the VOC Pascal Segmentation dataset and have it as following format:
/VOCdevkit
โโโ VOC2012
โโโ Annotations
โโโ ImageSets
โ โโโ Segmentation
โโโ JPEGImages
โโโ SegmentationObject
โโโ SegmentationClass
I am using the latest torch/torchvision version which is torch 1.7.1 and its corresponding torchvision. when I want to use the VOCSegmentation dataloader I get the following error:
import torch
import torchvision
dataset = torchvision.datasets.VOCSegmentation(root='/path/VOCdevkit/', year='2012', image_set='trainval', download=False)
Error:
RuntimeError Traceback (most recent call last)
<ipython-input-5-a979806cab30> in <module>
1 import torch
2 import torchvision
----> 3 dataset = torchvision.datasets.VOCSegmentation(root='/path/VOCdevkit/', year='2012', image_set='trainval', download=False)
~/anaconda3/envs/pytorch/lib/python3.6/site-packages/torchvision/datasets/voc.py in __init__(self, root, year, image_set, download, transform, target_transform, transforms)
103 if not os.path.isdir(voc_root):
104 raise RuntimeError('Dataset not found or corrupted.' +
--> 105 ' You can use download=True to download it')
106
107 splits_dir = os.path.join(voc_root, 'ImageSets/Segmentation')
RuntimeError: Dataset not found or corrupted. You can use download=True to download it
cc @pmeier
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Dataset not found or corrupted. You can use download=True ...
Solution to this problem is simply downloading this file from internet e.g. Kaggle. Problem number two. When using function CelebA function withย ...
Read more >VOCDetection Dataset md5 has changed, no longer will load ...
RuntimeError : File not found or corrupted. Can be fixed by correcting the md5sum: from torchvision.datasets im... ... download=True)ย ...
Read more >RuntimeError: Dataset not found. You can ... - PyTorch Forums
I was trying to download the MNIST dataset by the boilerplate code given on PyTorch official site. But first it gave Error 110:...
Read more >SegmentationTest/data/VOC.py - RobustViT - Hugging Face
class VOCSegmentation(data.Dataset): ... raise RuntimeError('Dataset not found or corrupted.' +. ' You can use download=True to download it').
Read more >torchๅ ่ฝฝๆฐๆฎ้๏ผDataset not found or corrupted. You can use ...
... or corrupted. You can use download=True to download it ... line 61, in __init__ raise RuntimeError('Dataset not found or corrupted.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Did you try
/path
as suggested above?It actually solved the issue!! Thanks a lot for your help, the solution was 1) move to pytorch 1.8.1 and 2) to do it with just
/path
โฆ