0

It is possible to download weights for any CNN from the keras repository directly during execution of the program using :

model = VGG16(weights='imagenet', include_top=True, input_shape = (224, 224, 3))

but is it possible to download the weights trained on imagenet separately and use it to run the CNN model?

  • Have you tried: model.load_weights('my_model_weights.h5') – Gabriel M Jul 05 '18 at 08:07
  • Can you explain what you mean by `download the weights trained on imagenet separately and use it to run the CNN model`, It sounds same as the first case. Do you want to download the weights for some model and then use those weights in another (possibly one with a different architecture) model? – umutto Jul 05 '18 at 08:12
  • No , I want to download the weights, and say use it anytime I run the model, without downloading it everytime I run the program – Jeet Sensarma Aug 06 '18 at 16:03

0 Answers0