I have been working on Roboflow’s Object count using Bytetrack and Supervision; While implementing I keep getting numpy compatibility issues, even after installing the required version of Supervision and ByteTrack.
This is the notebook, I’m referring to: (Google Colab)
and this is the error, I keep getting while running the last cell code:
AttributeError Traceback (most recent call last)
<ipython-input-40-faff2fc32589> in <cell line: 17>()
29 detections.filter(mask=mask, inplace=True)
30 # tracking detections
---> 31 tracks = byte_tracker.update(
32 output_results=detections2boxes(detections=detections),
33 img_info=frame.shape,
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 specifically 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
- Object Counter using ByteTrack and supervision
- Mac-OS- Object Detection and count using ByteTracker and Supervision
Thank you!