April 2020
Intermediate to advanced
438 pages
12h 2m
English
Run the following steps to implement fine-tuning (with transfer learning) using keras.
train_dir = 'images/flower_photos/train'test_dir = 'images/flower_photos/test'image_size = 224
vgg_conv = VGG16(weights='imagenet', include_top=False, input_shape=(image_size, image_size, 3))
for layer in vgg_conv.layers[:-2]: layer.trainable = False
Read now
Unlock full access