Skip to content

Instantly share code, notes, and snippets.

View llucifer97's full-sized avatar
🎯
Focusing

ayush raj llucifer97

🎯
Focusing
View GitHub Profile
@llucifer97
llucifer97 / KerasOnAndroid.md
Created May 21, 2018 10:15 — forked from gauravshelangia/KerasOnAndroid.md
Running the keras neural network model on android mobile device

To run the keras model follow the below instructions

  • Save the keras model as json file and model weight in h5 file

    model.save('mtarget_model_full1.h5') 
    # save model in json file
    # serialize model to JSON
    model_json = model.to_json()
    with open("Model_json", "w") as json_file:
        json_file.write(model_json)