Tensorflow 2 flower_photos花卉數據集手動下載、離線安裝、本地加載、快速讀取

Tensorflow 2 flower_photos花卉數據集手動下載、離線安裝、本地加載、快速讀取 api

商務合做,科技諮詢,版權轉讓:向日葵,135—4855__4328,xiexiaokui#qq.com ui

 

查看數據集列表: google

 

flower_photos手動下載,Link: spa

data_root = tf.keras.utils.get_file( 

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

 

離線安裝步驟 code

複製到: blog

C:\Users\DFKJ3\.keras\datasets get

解壓: generator

解壓到當前文件夾 it

 

讀取: class

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

相關文章
相關標籤/搜索