To run the keras model follow the below instructions * Save the keras model as **json** file and model weight in **h5** file ```python 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) # Save model weights model.save_weights('Model_weights') ``` * import the saved model into dl4j ```java String modelJsonFilename = "path_to_Model_json"; String weightsHdf5Filename = "path_to_model_weights"; // load model from two different file one : json flie having json config and another: weights file MultiLayerNetwork model = KerasModelImport.importKerasSequentialModelAndWeights(modelJsonFilename,weightsHdf5Filename); //Save the model File locationToSave = new File("MyMultiLayerNetwork.zip"); //Where to save the model as zip file boolean saveUpdater = true ModelSerializer.writeModel(model, locationToSave, saveUpdater); ``` * Last load the model (zip file) on android device ```java File dir = new File(Environment.getExternalStorageDirectory(),"/Model"); File modelzip = new File(dir,"MyMultiLayerNetwork.zip"); //Load the model MultiLayerNetwork restored = ModelSerializer.restoreMultiLayerNetwork(modelzip); ```