How do direct to the local root and/or online root for MNIST dataset to train and transform it? I downloaded MNIST onto my harddrive here: MNIST_dataset | Kaggle
I tried this but it is getting an error?
train_data =datasets.MNIST(
root = ‘data’,
train = True,
transform = ToTensor(),
download = True
)
If you are using Linux, navigate through the terminal to the folder where the data is stored and run pwd. The path will be returned, just copy that and paste in root=’ '.
Or you can move the folder to the directory you are working and create the folder “data” and move it in.
Perhaps the issue is the file structure? I have tried every combination of zip files, test, train data, etc. and also root folders. Should the MNIST data be in a zip file?