[e95d78]: / examples / cinc17 / entry / weights_only.py

Download this file

8 lines (5 with data), 118 Bytes

1
2
3
4
5
6
import keras
import sys
mpath = sys.argv[1]
model = keras.models.load_model(mpath)
model.save_weights("model.hdf5")