-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Error: Unknown layer: Rescaling. #3728
Comments
@co2nut this is a feature request , would you be willing to contribute ? |
Have you guys found a solution to this? I am getting the same error... |
Same, I am seeing this when loading a Keras model, ie
|
My guess is that you all are using the |
Yes, Rescaling is causing the issue; I removed it and now it's working |
Thank you , closing this issue for now |
I know this issue is closed, but for visitors who uses tf.keras.applications.EfficientNetB?, it cannot be converted to tfjs because it uses Rescaling in it. |
I fixed it by adding this parameter at the conversion command: --output_format=tfjs_graph_model After that, I loaded the model as Graph in the JavaScript code of the website. I hope it's useful |
I removed the scaling from the model but still it's not working input_shape = (config.HEIGHT, config.WIDTH, 3) outputs = keras.layers.Dense(2)(x) |
Getting the error when trying to load custom converted model :
Error: Unknown layer: Rescaling. This may be due to one of the following reasons:
The text was updated successfully, but these errors were encountered: