Tensorflow 2 flower_photos花卉数据集手动下载、离线安装、本地加载、快速读取

Tensorflow 2 flower_photos花卉数据集手动下载、离线安装、本地加载、快速读取

商务合作,科技咨询,版权转让:向日葵,135—4855__4328,xiexiaokui#qq.com

 

查看数据集列表:

Tensorflow 2 flower_photos花卉数据集手动下载、离线安装、本地加载、快速读取

 

flower_photos手动下载,Link:

data_root = tf.keras.utils.get_file(

  'flower_photos','https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz',

 

离线安装步骤

复制到:

C:\Users\DFKJ3\.keras\datasets

解压:

解压到当前文件夹

 

读取:

>>> image_generator = tf.keras.preprocessing.image.ImageDataGenerator(rescale=1/255)

>>> image_data = image_generator.flow_from_directory(str(data_root), target_size=IMAGE_SHAPE)

Found 3670 images belonging to 5 classes.

商务合作,科技咨询,版权转让:向日葵,135—4855__4328,xiexiaokui#qq.com

上一篇:cocos2d 艺术标签没有显示


下一篇:Tensorflow 2 Cifar10离线数据集手动下载、离线安装、本地加载、快速读取