[英]Why fashion mnist is treated as mnist in tensorflow?
I'm trying to load fashion mnist dataset into my spyder.我正在尝试将时尚 mnist 数据集加载到我的 spyder 中。 I'm trying to do this using code:
我正在尝试使用代码来做到这一点:
from tensorflow.examples.tutorials.mnist import input_data
fmnist = input_data.read_data_sets('data/fashion',
source_url='http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/')
However, instead of loading fashion mnist it loads mnist dataset:但是,它不是加载时尚 mnist,而是加载 mnist 数据集:
For example by running code例如通过运行代码
plt.imshow(fmnist.train.images[5].reshape(28,28))
I obtain image:我获得图像:
Could you please give me a hand where do I have mistake?你能帮我看看我哪里有错误吗?
How about just getting the data from keras datasets like this?像这样从keras 数据集中获取数据怎么样?
from tensorflow.keras.datasets import fashion_mnist
(x_train, y_train), (x_test, y_test) = fashion_mnist.load_data()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.