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: FixedDropout #137

Closed
prakashsellathurai opened this issue Dec 23, 2020 · 6 comments
Closed

ValueError: Unknown layer: FixedDropout #137

prakashsellathurai opened this issue Dec 23, 2020 · 6 comments

Comments

@prakashsellathurai
Copy link

model1 = tf.keras.models.load_model('../input/cassava-leaf-disease-training/efficient_net.h5')

@RakeshRaj97
Copy link

Use the below link to download Noisy student weights without top and train the model.
This solved me the issue of FixedDropout in load_model

https://colab.research.google.com/github/keras-team/keras-io/blob/master/examples/vision/ipynb/image_classification_efficientnet_fine_tuning.ipynb#scrollTo=1rU4e_jLulNs

@prakashsellathurai
Copy link
Author

Thanks, @RakeshRaj97 It worked Now

@isahhin
Copy link

isahhin commented Jan 12, 2021

I solved it by importing the EfficientNetB4
The problem is that it looks some functions, therefore, we have to import them.

from efficientnet.tfkeras import EfficientNetB4
model = models.load_model('your_model.h5')

@JasonCZH4
Copy link

@isahhin Thinks,it did work.

@dinusharuwan
Copy link

I did like this, But I have this error.
pls any one can help me....

ValueError: Unknown layer: FixedDropout. Please ensure this object is passed to the custom_objects argument. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details.

@elliestath
Copy link

hey, same here. Did you find out how to access FixedDropout layer?
I try to do something like keras.layers.FixedDropout

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

6 participants