In [4]:
url = "https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg19_weights_tf_dim_ordering_tf_kernels.h5"
r = requests.get(url, allow_redirects=True)
open('vgg19_weights_tf_dim_ordering_tf_kernels.h5', 'wb').write(r.content)
In [5]:
# Loads the weights
model.load_weights("vgg19_weights_tf_dim_ordering_tf_kernels.h5")