Created
April 26, 2018 12:51
-
-
Save pabloformoso/263454564dbfbcf560da30aec68766d1 to your computer and use it in GitHub Desktop.
Built in VGG16 network with Keras
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.optimizers import SGD | |
from keras.applications.vgg16 import VGG16 | |
model = VGG16(weight='imagenet', include_top=True) | |
sgd = SGD(lr=0.1, decay=1e-6, momentum=0.9, nesterov=True) | |
model.compile(optimizer=sgd, loss='categorical) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment