MuhammadMoinFaisal / YOLOv8-DeepSORT-Object-Tracking

YOLOv8 Object Tracking using PyTorch, OpenCV and DeepSORT
812 stars 223 forks source link

HYDRA_FULL_ERROR=1 for a complete stack trace Error Occur. #21

Closed ImSuMyatNoe closed 1 year ago

ImSuMyatNoe commented 1 year ago

raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifi cally 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?

KongBuZhanTieRen commented 1 year ago

I have the same problem

KongBuZhanTieRen commented 1 year ago

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

Liuchuang-alt commented 1 year ago

Which platform are you running under ? linux or windows?

KongBuZhanTieRen commented 1 year ago

windows

saniasinghanicourse1 commented 1 year ago

Just write 'export HYDRA_FULL_ERROR=1' in your command prompt before running the predict.py code and the error should be solved.