cgDude
cgDude

Reputation: 93

How to use my own vgg19 file instead of downloading

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

Answers (1)

do thuan
do thuan

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

Related Questions