Khrylx / AgentFormer

[ICCV 2021] Official PyTorch Implementation of "AgentFormer: Agent-Aware Transformers for Socio-Temporal Multi-Agent Forecasting".
https://www.ye-yuan.com/agentformer/
MIT License
254 stars 64 forks source link

modify np.int -> int #32

Open PFery4 opened 1 year ago

PFery4 commented 1 year ago

I modified the code in preprocessor.py. instances of np.int have been replaced by int. This is done in accordance with the release notes of numpy version 1.20.0, stating the deprecation of the np.int datatype: https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated

the modification does not alter the behaviour of the code in any way, but will reduce the amount of warning messages. Note that it also complies with the minimal case where the user has installed python version 3.7, and pip installed the requirements.txt file. In that case, the installed numpy version is superior to 1.20.0, ensuring that the code will function properly.