-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unknow error #2
Comments
Yeah the issue would be custom object loading in tensorflow. You'll have to load the model like this from visual_attention import PixelAttention2D , ChannelAttention2D
loaded_model = tf.keras.models.load_model('/tmp/model',custom_objects={"ChannelAttention2D":ChannelAttention2D}) Lemme know if that fixes the issue |
Dear Vinayak However, I'm obtaining the following error: |
I'm having the same issue. What i did was modify the init function and give the nf argument a default value which is the value of the CNN filter number i used. and comment or remove this line: And it worked. |
Hello
When I add the ChannelAttention2D layer it trains correctly. However when I try to load the model it through an exception that -
Unknown layer: ChannelAttention2D.
If you provide a full keras notebook then it will be very helpful for us.
The text was updated successfully, but these errors were encountered: