Open ehyoitsdavid opened 1 year ago
I changed it to dtype=np.float64
and it worked, try this on!
I changed it to
dtype=np.float64
and it worked, try this on!
Having the same problem, then I adreesed it, too.🙈
Install Python 3.7.9 then create a new VENV using 3.7 'python3.7 -m venv myenv' Install the requirements.txt and the correct version of numpy, 1.20.3 will be installed
Keep using python 3.11.3. Then do the following:
pip unsinstall numpy
pip install numpy==1.23.5
This version worked for me.
Hi DavidH-Tech. According to my evaluation and experience,
The error message shows that there is an issue with the usage of the np.float attribute in the code. It seems that np.float is being used as an alias for the built-in float type, but it has been deprecated in recent versions of NumPy (Meaning its been stopped in recent versions)
To resolve this error, you need to replace np.float with float in the code. The recommended fix is to use float directly instead of the deprecated alias.
Here's the modified line of code that should resolve the issue:
], dtype=float) / 255
By making this change, you will avoid the warning and ensure the compatibility with the version of NumPy you are using.
Cheers,
theClawsmos
P.S. Please note that if you specifically intended to use the NumPy scalar type, you can use np.float64 instead of np.float. However, based on the error message, it seems that using the built-in float type should be sufficient for your needs.
Keep using python 3.11.3. Then do the following:
pip unsinstall numpy
pip install numpy==1.23.5
This version worked for me.
It worked for me too!. Thanks!
what file do i change the line in ], dtype=float) / 255
pip install numpy==1.22.0
worked for me
I am using Python 3.11.3 and NumPy 1.24.3 and I get the following error when trying to run the toolbox: