Reputation: 93
vgg = tf.keras.applications.vgg19.VGG19(include_top=False, weights='imagenet')
vgg.trainable = False
I have this file already downloaded on my PC, how to use that, since I don't want to download again? What will be the alternate code to use the vgg19 weights file I have?
Upvotes: 0
Views: 663
Reputation: 475
Take a look at here keras.io/api/applications. Try to locate your model into ~/.keras/models/
folder
Please make sure that your model has the same architecture with Keras's model
Upvotes: 1