public class KerasModelImport
extends java.lang.Object
| Constructor and Description |
|---|
KerasModelImport() |
| Modifier and Type | Method and Description |
|---|---|
static ComputationGraph |
importKerasModelAndWeights(java.io.InputStream modelHdf5Stream)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
importKerasModelAndWeights(java.io.InputStream modelHdf5Stream,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
importKerasModelAndWeights(java.lang.String modelHdf5Filename)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
importKerasModelAndWeights(java.lang.String modelHdf5Filename,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
importKerasModelAndWeights(java.lang.String modelJsonFilename,
java.lang.String weightsHdf5Filename)
Load Keras (Functional API) Model for which the configuration and weights were
saved separately using calls to model.to_json() and model.save_weights(...).
|
static ComputationGraph |
importKerasModelAndWeights(java.lang.String modelJsonFilename,
java.lang.String weightsHdf5Filename,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model for which the configuration and weights were
saved separately using calls to model.to_json() and model.save_weights(...).
|
static ComputationGraphConfiguration |
importKerasModelConfiguration(java.lang.String modelJsonFilename)
Load Keras (Functional API) Model for which the configuration was saved
separately using calls to model.to_json() and model.save_weights(...).
|
static ComputationGraphConfiguration |
importKerasModelConfiguration(java.lang.String modelJsonFilename,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model for which the configuration was saved
separately using calls to model.to_json() and model.save_weights(...).
|
static MultiLayerConfiguration |
importKerasSequentialConfiguration(java.lang.String modelJsonFilename)
Load Keras Sequential model for which the configuration was saved
separately using calls to model.to_json() and model.save_weights(...).
|
static MultiLayerConfiguration |
importKerasSequentialConfiguration(java.lang.String modelJsonFilename,
boolean enforceTrainingConfig)
Load Keras Sequential model for which the configuration was saved
separately using calls to model.to_json() and model.save_weights(...).
|
static MultiLayerNetwork |
importKerasSequentialModelAndWeights(java.io.InputStream modelHdf5Stream)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
importKerasSequentialModelAndWeights(java.io.InputStream modelHdf5Stream,
boolean enforceTrainingConfig)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
importKerasSequentialModelAndWeights(java.lang.String modelHdf5Filename)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
importKerasSequentialModelAndWeights(java.lang.String modelHdf5Filename,
boolean enforceTrainingConfig)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
importKerasSequentialModelAndWeights(java.lang.String modelJsonFilename,
java.lang.String weightsHdf5Filename)
Load Keras Sequential model for which the configuration and weights were
saved separately using calls to model.to_json() and model.save_weights(...).
|
static MultiLayerNetwork |
importKerasSequentialModelAndWeights(java.lang.String modelJsonFilename,
java.lang.String weightsHdf5Filename,
boolean enforceTrainingConfig)
Load Keras Sequential model for which the configuration and weights were
saved separately using calls to model.to_json() and model.save_weights(...).
|
public static ComputationGraph importKerasModelAndWeights(java.io.InputStream modelHdf5Stream, boolean enforceTrainingConfig)
modelHdf5Stream - InputStream containing HDF5 archive storing Keras ModelenforceTrainingConfig - whether to enforce training configuration optionsComputationGraphpublic static ComputationGraph importKerasModelAndWeights(java.io.InputStream modelHdf5Stream)
modelHdf5Stream - InputStream containing HDF5 archive storing Keras ModelComputationGraphpublic static MultiLayerNetwork importKerasSequentialModelAndWeights(java.io.InputStream modelHdf5Stream, boolean enforceTrainingConfig) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelHdf5Stream - InputStream containing HDF5 archive storing Keras Sequential modelenforceTrainingConfig - whether to enforce training configuration optionsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionComputationGraphpublic static MultiLayerNetwork importKerasSequentialModelAndWeights(java.io.InputStream modelHdf5Stream) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelHdf5Stream - InputStream containing HDF5 archive storing Keras Sequential modeljava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionComputationGraphpublic static ComputationGraph importKerasModelAndWeights(java.lang.String modelHdf5Filename, boolean enforceTrainingConfig) throws java.io.IOException, UnsupportedKerasConfigurationException, InvalidKerasConfigurationException
modelHdf5Filename - path to HDF5 archive storing Keras ModelenforceTrainingConfig - whether to enforce training configuration optionsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionComputationGraphpublic static ComputationGraph importKerasModelAndWeights(java.lang.String modelHdf5Filename) throws java.io.IOException, UnsupportedKerasConfigurationException, InvalidKerasConfigurationException
modelHdf5Filename - path to HDF5 archive storing Keras Modeljava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionComputationGraphpublic static MultiLayerNetwork importKerasSequentialModelAndWeights(java.lang.String modelHdf5Filename, boolean enforceTrainingConfig) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelHdf5Filename - path to HDF5 archive storing Keras Sequential modelenforceTrainingConfig - whether to enforce training configuration optionsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionMultiLayerNetworkpublic static MultiLayerNetwork importKerasSequentialModelAndWeights(java.lang.String modelHdf5Filename) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelHdf5Filename - path to HDF5 archive storing Keras Sequential modeljava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionMultiLayerNetworkpublic static ComputationGraph importKerasModelAndWeights(java.lang.String modelJsonFilename, java.lang.String weightsHdf5Filename, boolean enforceTrainingConfig) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename - path to JSON file storing Keras Model configurationweightsHdf5Filename - path to HDF5 archive storing Keras model weightsenforceTrainingConfig - whether to enforce training configuration optionsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionComputationGraphpublic static ComputationGraph importKerasModelAndWeights(java.lang.String modelJsonFilename, java.lang.String weightsHdf5Filename) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename - path to JSON file storing Keras Model configurationweightsHdf5Filename - path to HDF5 archive storing Keras model weightsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionComputationGraphpublic static MultiLayerNetwork importKerasSequentialModelAndWeights(java.lang.String modelJsonFilename, java.lang.String weightsHdf5Filename, boolean enforceTrainingConfig) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename - path to JSON file storing Keras Sequential model configurationweightsHdf5Filename - path to HDF5 archive storing Keras model weightsenforceTrainingConfig - whether to enforce training configuration optionsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionMultiLayerNetworkpublic static MultiLayerNetwork importKerasSequentialModelAndWeights(java.lang.String modelJsonFilename, java.lang.String weightsHdf5Filename) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename - path to JSON file storing Keras Sequential model configurationweightsHdf5Filename - path to HDF5 archive storing Keras model weightsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionMultiLayerNetworkpublic static ComputationGraphConfiguration importKerasModelConfiguration(java.lang.String modelJsonFilename, boolean enforceTrainingConfig) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename - path to JSON file storing Keras Model configurationenforceTrainingConfig - whether to enforce training configuration optionsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionComputationGraphpublic static ComputationGraphConfiguration importKerasModelConfiguration(java.lang.String modelJsonFilename) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename - path to JSON file storing Keras Model configurationjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionComputationGraphpublic static MultiLayerConfiguration importKerasSequentialConfiguration(java.lang.String modelJsonFilename, boolean enforceTrainingConfig) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename - path to JSON file storing Keras Sequential model configurationenforceTrainingConfig - whether to enforce training configuration optionsjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionMultiLayerNetworkpublic static MultiLayerConfiguration importKerasSequentialConfiguration(java.lang.String modelJsonFilename) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename - path to JSON file storing Keras Sequential model configurationjava.io.IOExceptionInvalidKerasConfigurationExceptionUnsupportedKerasConfigurationExceptionMultiLayerNetwork