converters.keras._keras2_converter

Module Contents

Functions

_is_merge_layer(layer)
_is_activation_layer(layer)
_check_unsupported_layers(model,add_custom_layers=False)
_get_layer_converter_fn(layer,add_custom_layers=False) Get the right converter function for Keras
_load_keras_model(model_network_path,model_weight_path,custom_objects=None) Load a keras model from disk
_convert(model,input_names=None,output_names=None,image_input_names=None,is_bgr=False,red_bias=0.0,green_bias=0.0,blue_bias=0.0,gray_bias=0.0,image_scale=1.0,class_labels=None,predicted_feature_name=None,predicted_probabilities_output=”“,add_custom_layers=False,custom_conversion_functions=None,custom_objects=None)
_is_merge_layer(layer)
_is_activation_layer(layer)
_check_unsupported_layers(model, add_custom_layers=False)
_get_layer_converter_fn(layer, add_custom_layers=False)

Get the right converter function for Keras

_load_keras_model(model_network_path, model_weight_path, custom_objects=None)

Load a keras model from disk

model_network_path: str
Path where the model network path is (json file)
model_weight_path: str
Path where the model network weights are (hd5 file)
custom_objects:
A dictionary of layers or other custom classes or functions used by the model

model: A keras model

_convert(model, input_names=None, output_names=None, image_input_names=None, is_bgr=False, red_bias=0.0, green_bias=0.0, blue_bias=0.0, gray_bias=0.0, image_scale=1.0, class_labels=None, predicted_feature_name=None, predicted_probabilities_output="", add_custom_layers=False, custom_conversion_functions=None, custom_objects=None)