Tensorflow 2 Cifar10離線數據集手動下載、離線安裝、本地加載、快速讀取 python
商務合做,科技諮詢,版權轉讓:向日葵,135—4855__4328,xiexiaokui#qq.com api
查看數據集列表: ui
目錄:C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\site-packages\tensorflow_core\python\keras\datasets spa
目錄:C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\site-packages\tensorflow_core\python\keras\datasets\__pycache__ 3d
Cifar10手動下載,Link: orm
https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz blog
離線安裝步驟 ci
複製到: get
C:\Users\DFKJ3\.keras\datasets it
更名:
打開壓縮包,發現裏面又有個文件夾,名稱爲,cifar-10-batches-py ,複製下來,將下載的壓縮包更名爲cifar-10-batches-py.tar.gz
解壓
爲了保險起見,解壓兩次,一次解壓到當前文件夾,另外一次解壓到壓縮包所在目錄。
一樣操做如下的文件夾(可能非必要)
複製到(非必要):
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\site-packages\tensorflow\python\keras\datasets\cifar-10-batches-py\
複製到(非必要):
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\site-packages\tensorflow_core\python\keras\api\keras\datasets
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\site-packages\tensorflow_core\python\keras\api\keras\datasets\cifar10
(train_images, train_labels), (test_images, test_labels) = datasets.cifar10.load_data()
# Normalize pixel values to be between 0 and 1
train_images, test_images = train_images / 255.0, test_images / 255.0
商務合做,科技諮詢,版權轉讓:向日葵,135—4855__4328,xiexiaokui#qq.com