Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

value error unknown layer #121

Open
ArunaKote opened this issue Aug 25, 2021 · 1 comment
Open

value error unknown layer #121

ArunaKote opened this issue Aug 25, 2021 · 1 comment

Comments

@ArunaKote
Copy link

ArunaKote commented Aug 25, 2021

while converting got error as ValueError('Unknown ' + printable_module_name + ': ' + class_name)
ValueError: Unknown layer: BatchNorm

@ArunaKote
Copy link
Author

i added custom_objects to load model as model = keras.models.load_model(input_model_path, compile=False,custom_objects={'BatchNorm': tf.keras.layers.BatchNormalization}) .But got error as Mask-RCNN-TF2-master/mrcnn/model.py", line 857, in
# Reshape to [batch, anchors, 2]
NameError: name 'tf' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant