Replies: 2 comments
-
Hi @LYBAB2 Try deleting the file |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm converting this issue into a Discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When I was executing the notebook code in the example, I encountered a situation where the dataset could not be imported
To Reproduce
BadZipFile Traceback (most recent call last)
Cell In[26], line 1
----> 1 (x_raw, y_raw), (x_raw_test, y_raw_test), min_, max_ = load_mnist(raw=True)
3 # Random Selection:
4 n_train = np.shape(x_raw)[0]
File d:\anaconda3\lib\site-packages\art\utils.py:1149, in load_mnist(raw)
1137 """
1138 Loads MNIST dataset from
config.ART_DATA_PATH
or downloads it if necessary.1139
1140 :param raw:
True
if no preprocessing should be applied to the data. Otherwise, data is normalized to 1.1141 :return:
(x_train, y_train), (x_test, y_test), min, max
.1142 """
1143 path = get_file(
1144 "mnist.npz",
1145 path=config.ART_DATA_PATH,
1146 url="https://s3.amazonaws.com/img-datasets/mnist.npz",
1147 )
-> 1149 dict_mnist = np.load(path)
1150 x_train = dict_mnist["x_train"]
1151 y_train = dict_mnist["y_train"]
File d:\anaconda3\lib\site-packages\numpy\lib\npyio.py:420, in load(file, mmap_mode, allow_pickle, fix_imports, encoding, max_header_size)
416 if magic.startswith(_ZIP_PREFIX) or magic.startswith(_ZIP_SUFFIX):
...
-> 1334 raise BadZipFile("File is not a zip file")
1335 if self.debug > 1:
1336 print(endrec)
BadZipFile: File is not a zip file
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Beta Was this translation helpful? Give feedback.
All reactions