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

Unable to allocate 4.00 GiB for an array with shape (134217728, 4) and data type float64 #193

Open
Seruios opened this issue May 29, 2023 · 1 comment

Comments

@Seruios
Copy link

Seruios commented May 29, 2023

AND

File "S:\Python\pifuhd-main\lib\data\EvalWPoseDataset.py", line 125, in fullbody_crop
center = (0.5 * (pmax[:2] + pmin[:2])).astype(np.int)
File "S:\Python\lib\site-packages\numpy_init_.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'.
np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.
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. Did you mean: 'inf'?

@lukas735
Copy link

lukas735 commented Dec 7, 2023

Yes its true. Its deprecated... But if all know how easy it is to fix. Why not changing the script and make a Commit. It is not really good practice to provide a outdated script which not anymore work. I also got this error and several more. All has to do with anything outdated... or maybe its also my Windows... lol. Don't know because i still have no fix for the more problematic GlutInit error....

So for all who has this problem go into all Scripts mentioned in your Traceback and search for np.int and np.bool
np.int and np.bool is deprecated since numpy v1.2 remove the np. and use int and bool instead.

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

2 participants