I am using keras for tensorflow 1.4. For some unknown reason, I continue failing when I try to download the weights (vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5') using:
base_model = VGG16(weights='imagenet', include_top=False)
so I manually downloaded the weights from the link cited in the script. https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5
Since the VGG16's weight cannot be set to the path of the weights (it has to be imagenet or None), I used the code lines:
base_model = VGG16(weights=None, include_top=False)
path = os.path.join('weights','vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5')
base_model.load_weights(path)
It is the same than base_model = VGG16(weights='imagenet', include_top=False) ? How can I check that the weights and outputs are correct?