-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Extraction of MNIST\raw\train-images-idx3-ubyte not supported #3554
Comments
You can solve this below command !
|
@Canlyu I still get the same error could it be that I got the wrong files cause I am just using the latest ones from the website with Wayback machine |
It is trying to extract a file that has already been extracted from the gzip |
Cross-posting: http://yann.lecun.com/exdb/mnist/ shows |
We got permission to host the dataset ourselves and provide the download in case the original server breaks again. See #3544 for details.
This happens, because right now we are using For a temporary workaround you can do something like this to compress the files again. import gzip
for file in files:
with open(file, "rb") as rfh, gzip.open(f"{file}.gz", "wb") as wfh:
wfh.write(rfh.read()) |
Thanks man, this is working fine :) |
Hey, so I am trying to use the MNIST dataset by doing
train = datasets.MNIST("", train =True, download = True, transform = transforms.Compose([transforms.ToTensor()])) test = datasets.MNIST("", train =False, download = True, transform = transforms.Compose([transforms.ToTensor()]))
however, I got a 503 error because the link for the download is down. I know you guys have no control over this so I downloaded the files off of another website. I know there is probably a different way to do this but I couldn't find the file path to put them in so I just hosted the files on a flask website and changed the URL in mnist.py to the URL I was hosting the files on. This worked fine and it downloaded all the files but now when I run it I get the following error
ValueError: Extraction of MNIST\raw\train-images-idx3-ubyte not supported
And I tried unzipping the files and placing them in a bunch of different folders but that didn't seem to do anything so I was wonder if anyone knew how to fix this
The text was updated successfully, but these errors were encountered: