简体   繁体   中英

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. 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

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:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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