mediapipe_model_maker.model_util.load_keras_model
Stay organized with collections
Save and categorize content based on your preferences.
Loads a tensorflow Keras model from file and returns the Keras model.
mediapipe_model_maker.model_util.load_keras_model(
model_path: str, compile_on_load: bool = False
) -> tf.keras.Model
Args |
model_path
|
Absolute path to a directory containing model data, such as
//saved_model/.
|
compile_on_load
|
Whether the model should be compiled while loading. If
False, the model returned has to be compiled with the appropriate loss
function and custom metrics before running for inference on a test
dataset.
|
Returns |
|
A tensorflow Keras model.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-28 UTC.
[null,null,["Last updated 2026-05-28 UTC."],[],[]]