runtime error
l last): File "/home/user/app/app.py", line 96, in <module> new_model = keras.models.load_model("./trained.h5", custom_objects={'PSNR':PSNR}) File "/usr/local/lib/python3.10/site-packages/keras/src/saving/saving_api.py", line 189, in load_model return legacy_h5_format.load_model_from_hdf5( File "/usr/local/lib/python3.10/site-packages/keras/src/legacy/saving/legacy_h5_format.py", line 133, in load_model_from_hdf5 model = saving_utils.model_from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/legacy/saving/saving_utils.py", line 85, in model_from_config return serialization.deserialize_keras_object( File "/usr/local/lib/python3.10/site-packages/keras/src/legacy/saving/serialization.py", line 495, in deserialize_keras_object deserialized_obj = cls.from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/models/model.py", line 521, in from_config return functional_from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/models/functional.py", line 477, in functional_from_config process_layer(layer_data) File "/usr/local/lib/python3.10/site-packages/keras/src/models/functional.py", line 457, in process_layer layer = saving_utils.model_from_config( File "/usr/local/lib/python3.10/site-packages/keras/src/legacy/saving/saving_utils.py", line 85, in model_from_config return serialization.deserialize_keras_object( File "/usr/local/lib/python3.10/site-packages/keras/src/legacy/saving/serialization.py", line 473, in deserialize_keras_object (cls, cls_config) = class_and_config_for_serialized_keras_object( File "/usr/local/lib/python3.10/site-packages/keras/src/legacy/saving/serialization.py", line 354, in class_and_config_for_serialized_keras_object raise ValueError( ValueError: Unknown layer: 'TFOpLambda'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details.
Container logs:
Fetching error logs...