资源简介
keras resnet 迁移训练数据 和 读取数据
代码片段和文件信息
“““
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插件豆沙绿主题
评论
共有 条评论