-
Notifications
You must be signed in to change notification settings - Fork 216
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
HYDRA_FULL_ERROR=1 for a complete stack trace Error Occur. #21
Comments
I have the same problem |
This issue is caused by a version mismatch of numpy, as numpy deleted np.float after version 1.24. I resolved this issue by switching numpy version to 1.23.5 |
Which platform are you running under ? linux or windows? |
windows |
Just write 'export HYDRA_FULL_ERROR=1' in your command prompt before running the predict.py code and the error should be solved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use
np.float64
here.The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Although I have used your updated "predict.py" code, but the same error occur. I have tested both on my desktop PC and Laptop? Do u have any idea how to solve this?
The text was updated successfully, but these errors were encountered: