ByteTrack icon indicating copy to clipboard operation
ByteTrack copied to clipboard

np.float errors in the trackers

Open thecetin opened this issue 1 year ago • 6 comments

Hello, im using trackers algorithm in "colab". So i always need to install in to "colab" when i work on some projects. So every time i need to edit tracker code and replace all "np.float" to "float". How can this problem solve?

->ByteTrack -> yolox -> tracker -> byte_tracker.py and matching.py

In these two .py files you should change "np.float" to "float"

Thank you for help.

thecetin avatar Feb 23 '24 08:02 thecetin

I was about to open this issue. I'm having the same problem.

braiansmarzaro avatar Mar 02 '24 23:03 braiansmarzaro

I am also having issues here, have you @braiansmarzaro and @thecetin any luck solving the problem?

LemonJam84 avatar May 04 '24 22:05 LemonJam84

Hi @LemonJam84. As far as i can remember, i cloned the repo and changed every np.float to just float and it worked. Good luck with this problem 🫡

braiansmarzaro avatar May 04 '24 22:05 braiansmarzaro

sounds good, thanks @braiansmarzaro

LemonJam84 avatar May 04 '24 22:05 LemonJam84

The quick fix is limiting numpy version <1.24, but it is a numpy version released in 2022.

There are a few open PRs ~possibly~ fixing this error:

  • #399
  • #360
  • #389
  • #396

And related issues:

  • #311
  • #330

iurisilvio avatar May 05 '24 09:05 iurisilvio

@ifzhang This would be very helpful for keeping the library up to date.

NicDionne avatar Sep 10 '24 14:09 NicDionne