keras-resnet的简介
Keras-ResNet is the Keras package for deep residual networks. It's fast and flexible. Keras- resnet是用于深度剩余网络的Keras包。它又快又灵活。
github:https://github.com/broadinstitute/keras-resnet
keras-resnet的安装
pip install keras-resnet
keras-resnet使用方法
1、对Keras Resnet简单性的诱人预览
import keras
import keras_resnet.models
shape, classes = (32, 32, 3), 10
x = keras.layers.Input(shape)
model = keras_resnet.models.ResNet50(x, classes=classes)
model.compile("adam", "categorical_crossentropy", ["accuracy"])
(training_x, training_y), (_, _) = keras.datasets.cifar10.load_data()
training_y = keras.utils.np_utils.to_categorical(training_y)
model.fit(training_x, training_y)