資源簡介
keras resnet 遷移訓(xùn)練數(shù)據(jù) 和 讀取數(shù)據(jù)
代碼片段和文件信息
“““
Adapted?from?keras?example?cifar10_cnn.py
Train?ResNet-18?on?the?CIFAR10?small?images?dataset.
GPU?run?command?with?Theano?backend?(with?TensorFlow?the?GPU?is?automatically?used):
????THEANO_FLAGS=mode=FAST_RUNdevice=gpufloatX=float32?python?cifar10.py
“““
from?__future__?import?print_function
from?keras.datasets?import?cifar10
from?keras.preprocessing.image?import?ImageDataGenerator
from?keras.utils?import?np_utils
from?keras.callbacks?import?ReduceLROnPlateau?CSVLogger?EarlyStopping
import?numpy?as?np
import?resnet
from?load_image?import?read_imageread_label
from?sklearn.model_selection?import?train_test_split
lr_reducer?=?ReduceLROnPlateau(factor=np.sqrt(0.1)?cooldown=0?patience=5?min_lr=0.5e-6)
early_stopper?=?EarlyStopping(min_delta=0.001?patience=10)
csv_logger?=?CSV
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????3748??2019-04-24?16:39??resnet\cifar10.py
?????文件????????2369??2019-04-24?11:52??resnet\load_image.py
?????文件????????9310??2019-04-17?15:32??resnet\resnet.py
- 上一篇:多級樹狀菜單
- 下一篇:eclipse插件豆沙綠主題
評論
共有 條評論