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

ValueError: Unknown layer: HaarWaveLayer2D #3

Closed
CTGUzhangguangyi opened this issue Mar 18, 2021 · 0 comments
Closed

ValueError: Unknown layer: HaarWaveLayer2D #3

CTGUzhangguangyi opened this issue Mar 18, 2021 · 0 comments

Comments

@CTGUzhangguangyi
Copy link

CTGUzhangguangyi commented Mar 18, 2021

I try to use "tf.keras.models.load_model",error happen

raise ValueError('Unknown ' + printable_module_name + ': ' + class_name)
ValueError: Unknown layer: HaarWaveLayer2D

but I can't be used directly ,like this(It,s also wrong to do so)

from wavetf._haar_conv import *
...
_custom_objects = {
"HaarWaveLayer2D" : HaarWaveLayer2D,
}
model = tf.keras.models.load_model("path/to/your/model", custom_objects=_custom_objects)

How can I solve this problem

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