In [1]:
WEIGHTS_FILEPATH = 'inception_v3.hdf5'
MODEL_ARCH_FILEPATH = 'inception_v3.json'

In [2]:
from keras.applications import inception_v3, imagenet_utils


Using TensorFlow backend.

In [3]:
input_shape = (299, 299, 3)

model = inception_v3.InceptionV3(include_top=True, weights='imagenet')

In [4]:
model.save_weights(WEIGHTS_FILEPATH)

with open(MODEL_ARCH_FILEPATH, 'w') as f:
    f.write(model.to_json())

In [ ]: