-
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
np.object deprecation issue in tensorflowjs_converter #8434
Comments
Hi @ayushsharma-1 , Thank you for reporting the issue. As far as I know, the Thank You!! |
tensorflowjs_wizard For me, it happens directly when I invoke the wizard. |
For me, changing to the newest tfjs already resolved the problem. As they already fixed it in the source. They replaced np.object with object. |
1. URL of the file using:
https://github.com/tensorflow/tfjs
2. Issue:
I am encountering an issue when attempting to convert a Keras model (
.h5
) to TensorFlow.js format using thetensorflowjs_converter
command. The issue arises due to the deprecated usage ofnp.object
in the TensorFlow.js code.Starting from NumPy 1.20, the
np.object
alias has been removed, causing compatibility issues with newer versions of NumPy. When I try running thetensorflowjs_converter
tool, I receive the following error:This error occurs because
np.object
was removed as part of the NumPy 1.20 update, and is now considered a deprecated alias for the built-inobject
. The solution to this issue would be to replace the usage ofnp.object
in TensorFlow.js with the standardobject
type, which is the correct usage in newer versions of NumPy.Steps to Reproduce:
.h5
model to TensorFlow.js format using the command:3. Additional context:
np.object
is no longer supported in NumPy versions 1.20 and later. The official NumPy documentation notes thatnp.object
was deprecated and removed in version 1.20.4. Are you willing to contribute it? (Yes or No):
No
The text was updated successfully, but these errors were encountered: