简体   繁体   English

我可以在旧版本的 tensorflow 上安装时尚 mnist 吗?

[英]can i install fashion mnist on older version of tensorflow?

I'm working in tensorflow 1.4.0 and I want to use fashion_mnist datasets.我在 tensorflow 1.4.0 工作,我想使用 fashion_mnist 数据集。 I know that this version does not have this datasets, but there is a way to have this?我知道这个版本没有这个数据集,但是有办法吗?

I've found the solution here: Fashion-MNIST我在这里找到了解决方案: Fashion-MNIST

You can download the data that you find in the link above and placed it in data/fashion.您可以下载在上面链接中找到的数据并将其放入数据/时尚。

from tensorflow.examples.tutorials.mnist import input_data
data = input_data.read_data_sets('data/fashion')

data.train.next_batch(BATCH_SIZE)

Or passing in a source url to the read_data_sets:或者将源 url 传递给 read_data_sets:

data = input_data.read_data_sets('data/fashion', source_url='http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM