Skip to content Skip to sidebar Skip to footer

Where Does Keras Store Downloaded Data For Mnist?

I ran the script below: https://github.com/antoniosehk/keras-tensorflow-windows-installation/blob/master/examples/mnist_mlp.py I believe these lines downloaded the data. from keras

Solution 1:

I will answer my own question.

I found it here. I am using Windows 10.

C:\Users\<user_name>\.keras\datasets

Solution 2:

you can always check the Keras code on github. In your case you need the get_file function here: https://github.com/keras-team/keras/blob/e77a4cf3f85b45ad4275dfd661073ace1cc06e5a/keras/utils/data_utils.py#L123

And the answer to your question is:

By default the file at the url origin is downloaded to the cache_dir ~/.keras, placed in the cache_subdir datasets, and given the filename fname. The final location of a file example.txt would therefore be ~/.keras/datasets/example.txt.

Solution 3:

I just couldn't find anywhere in the locations mentioned above (C:\Users\<user_name>\.keras\datasets). But, ensured that the dataset is stored locally because it works even after I turned my internet (WiFi) Off. Hunt is still on. I also searched for mnist.npz in my local hard drive but could not find it.

Post a Comment for "Where Does Keras Store Downloaded Data For Mnist?"