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 optionsComputationGraph
public static ComputationGraph importKerasModelAndWeights(java.io.InputStream modelHdf5Stream)
modelHdf5Stream
- InputStream containing HDF5 archive storing Keras ModelComputationGraph
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
ComputationGraph
public static MultiLayerNetwork importKerasSequentialModelAndWeights(java.io.InputStream modelHdf5Stream) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelHdf5Stream
- InputStream containing HDF5 archive storing Keras Sequential modeljava.io.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
ComputationGraph
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
ComputationGraph
public static ComputationGraph importKerasModelAndWeights(java.lang.String modelHdf5Filename) throws java.io.IOException, UnsupportedKerasConfigurationException, InvalidKerasConfigurationException
modelHdf5Filename
- path to HDF5 archive storing Keras Modeljava.io.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
ComputationGraph
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
MultiLayerNetwork
public static MultiLayerNetwork importKerasSequentialModelAndWeights(java.lang.String modelHdf5Filename) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelHdf5Filename
- path to HDF5 archive storing Keras Sequential modeljava.io.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
MultiLayerNetwork
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
ComputationGraph
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
ComputationGraph
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
MultiLayerNetwork
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
MultiLayerNetwork
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
ComputationGraph
public static ComputationGraphConfiguration importKerasModelConfiguration(java.lang.String modelJsonFilename) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename
- path to JSON file storing Keras Model configurationjava.io.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
ComputationGraph
public 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.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
MultiLayerNetwork
public static MultiLayerConfiguration importKerasSequentialConfiguration(java.lang.String modelJsonFilename) throws java.io.IOException, InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
modelJsonFilename
- path to JSON file storing Keras Sequential model configurationjava.io.IOException
InvalidKerasConfigurationException
UnsupportedKerasConfigurationException
MultiLayerNetwork