Skip to content

ValueError: Unknown layer: 'TFOpLambda'. Please ensure you are using a keras.utils.custom_object_scope #163

Description

@keertika-11
import tensorflow as tf
from keras_cv_attention_models import *
        
model = tf.keras.models.load_model('eva_giant_patch14_224_imagenet21k-ft1k.h5')

> ValueError: Unknown layer: 'TFOpLambda'. Please ensure you are using a keras.utils.custom_object_scope and that this object is included in the scope.

tensorboard==2.16.2
tensorboard-data-server==0.7.2
tensorflow==2.16.1
tensorflow-datasets==4.9.3
tensorflow-estimator==2.14.0
tensorflow-hub==0.16.1
tensorflow-io-gcs-filesystem==0.37.0
tensorflow-metadata==1.15.0
tensorrt==8.5.3.1
termcolor==2.4.0
tf_keras==2.16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions