hello there, i have some problem, and i 'did not know how to solve it,please help me. i have no idea
Error
Exception AttributeError: "'NpzFile' object has no attribute 'zip'" in
Traceback (most recent call last):
File "
(x_train, y_train), (x_test, y_test) = mnist.load_data()
File "C:UsersdycASAnaconda2libsite-packageskerasdatasetsmnist.py", line 16, in load_data
f = np.load(path)
File "C:UsersdycASAnaconda2libsite-packagesnumpylibnpyio.py", line 399, in load
pickle_kwargs=pickle_kwargs)
File "C:UsersdycASAnaconda2libsite-packagesnumpylibnpyio.py", line 162, in __init__
_zip = zipfile_factory(fid)
File "C:UsersdycASAnaconda2libsite-packagesnumpylibnpyio.py", line 92, in zipfile_factory
return zipfile.ZipFile(args, *kwargs)
File "C:UsersdycASAnaconda2libzipfile.py", line 770, in __init__
self._RealGetContents()
File "C:UsersdycASAnaconda2libzipfile.py", line 813, in _RealGetContents
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file
I meet the same problem, have you solved it?
any solution?
Alhamdulillah, done and solved.
just remove your database downloaded at ur root folder. and run again. make sure ur connection, because this problem caused by the database you downloaded is failed
thank you very much! Solved!
Solved! thank you ,dycasxe101
excellent!
can you plz help me, where is the root folder here ??
rm ~/.keras/datasets/*
or you could use this command
find ~ -type f -name 'mnist.npz'
and remove manually.
In my case, I downloaded datasets manually: [https://s3.amazonaws.com/img-datasets/mnist.npz] and modified the mnist.py file located under \keras\datasets\ basically change the path to path = 'N:\Deep_Learning\envs\py_36\Lib\site-packages\keras\datasets\mnist.npz'; and it works obviously. However, for different datasets, you may want to save a copy mnist.py so you can revert the code.
Most helpful comment
Alhamdulillah, done and solved.
just remove your database downloaded at ur root folder. and run again. make sure ur connection, because this problem caused by the database you downloaded is failed