Using this code, I am getting the following error. Any advice on how to fix it?
Code:
train_data =datasets.MNIST(
root = ‘data’,
train = True,
transform = ToTensor(),
download = True
)
Error
File c:\Users\Name\AppData\Local\Programs\Python\Python313\Lib\site-packages\torchvision\datasets\mnist.py:100, in MNIST.init(self, root, train, transform, target_transform, download)
97 return
99 if download:
→ 100 self.download()
102 if not self._check_exists():
103 raise RuntimeError(“Dataset not found. You can use download=True to download it”)