FashionMNIST Download issue
Open
Nobody has claimed this yet.
module: datasets
needs reproduction
- Dominant language
- Python
- Stars
- 17.9k
- Forks
- 7.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 13
Description
🐛 Bug
Unable to download MNIST Dataset as per pytorch Documentation
https://pytorch.org/tutorials/beginner/basics/quickstart_tutorial.html
To Reproduce
import torch
from torch import nn
from torch.utils.data import DataLoader
from torchvision import datasets
from torchvision.transforms import ToTensor, Lambda, Compose
import matplotlib.pyplot as plt
training_data = datasets.FashionMNIST(
root="data",
train=True,
download=True,
transform=ToTensor(),
)
Error message is below
Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-images-idx3-ubyte.gz
Failed to download (trying next):
<urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
RuntimeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_8408/1648373759.py in <module>
6 import matplotlib.pyplot as plt
7
----> 8 training_data = datasets.FashionMNIST(
9 root="data",
10 train=True,
G:\ineuronai\o\envs\odtf\lib\site-packages\torchvision\datasets\mnist.py in __init__(self, root, train, transform, target_transform, download)
83
84 if download:
---> 85 self.download()
86
87 if not self._check_exists():
G:\ineuronai\o\envs\odtf\lib\site-packages\torchvision\datasets\mnist.py in download(self)
167 break
168 else:
--> 169 raise RuntimeError("Error downloading {}".format(filename))
170
171 # process and save as torch files
RuntimeError: Error downloading train-images-idx3-ubyte.gz
Expected behavior
- Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-images-idx3-ubyte.gz to
data/FashionMNIST/raw/train-images-idx3-ubyte.gz - Extracting
data/FashionMNIST/raw/train-images-idx3-ubyte.gztodata/FashionMNIST/raw
cc @fmassa @vfdev-5 @pmeier @brianjo @mruberry
Contributor guide
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 checking the FashionMNIST implementation in torchvision/datasets/mnist.py and reproducing the download from the tutorial. Compare the failing URL and expected extraction paths with the current dataset behavior; done means establishing whether the issue is actionable in torchvision or depends on the external download service.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100