Repository navigation
Conversation
|
hi @edgarriba , I think the reason we call Could you detail what command you ran and the error you were getting? It's possible that the integrity check is a bit too strong, or that the dataset that you have is missing some parts. |
|
CCing @pmeier on this one |
|
I'm using train_dataset = torchvision.datasets.WIDERFace(
root=to_absolute_path(config.data_path), transform=T.ToTensor(), split='train', download=False)and below is the error I get: Traceback (most recent call last):
File "/home/edgar/software/kornia/examples/train/object_detection/main.py", line 28, in my_app
root=to_absolute_path(config.data_path), transform=T.ToTensor(), split='train', download=False)
File "/home/edgar/software/vision/torchvision/datasets/widerface.py", line 76, in __init__
"Dataset not found or corrupted. " + "You can use download=True to download and prepare it"
RuntimeError: Dataset not found or corrupted. You can use download=True to download and prepare itI directly downloaded the dataset from the official website (and arranged as described in the docstring) because when using the flag Traceback (most recent call last):
File "/home/edgar/software/kornia/examples/train/object_detection/main.py", line 28, in my_app
root=to_absolute_path(config.data_path), transform=T.ToTensor(), split='train', download=True)
File "/home/edgar/software/vision/torchvision/datasets/widerface.py", line 72, in __init__
self.download()
File "/home/edgar/software/vision/torchvision/datasets/widerface.py", line 193, in download
extract_archive(filepath)
File "/home/edgar/software/vision/torchvision/datasets/utils.py", line 409, in extract_archive
extractor(from_path, to_path, compression)
File "/home/edgar/software/vision/torchvision/datasets/utils.py", line 284, in _extract_zip
from_path, "r", compression=_ZIP_COMPRESSION_MAP[compression] if compression else zipfile.ZIP_STORED
File "/home/edgar/software/kornia/.dev_env/envs/venv/lib/python3.7/zipfile.py", line 1258, in __init__
self._RealGetContents()
File "/home/edgar/software/kornia/.dev_env/envs/venv/lib/python3.7/zipfile.py", line 1325, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file |
|
Thanks @edgarriba , I can reproduce the zip issue, I opened #4615 which we will investigate. It's good that you find a workaround in the mean time, but let's wait until we fix the original issue before going back to this PR |
|
👍 |
hi ! I had to make this work around while using WiderFace dataset from downloaded directories.
Besides, in my computer seems that downloading doesn't work as expected.