You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'?
The text was updated successfully, but these errors were encountered:
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.
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 builtinint
. To avoid this error in existing code, useint
by itself. Doing this will not modify any behavior and is safe. When replacingnp.int
, you may wish to use e.g.np.int64
ornp.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'?
The text was updated successfully, but these errors were encountered: