# Numpy compatibility issue with the object counter using ByteTrack and Supervision

**URL:** <https://discuss.roboflow.com/t/numpy-compatibility-issue-with-the-object-counter-using-bytetrack-and-supervision/5284>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [April 13, 2024, 8:42pm UTC](https://discuss.roboflow.com/t/numpy-compatibility-issue-with-the-object-counter-using-bytetrack-and-supervision/5284 "2024-04-13T20:42:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yashu\_S](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/yashu_s/32/4277_2.png) [@Yashu\_S](https://discuss.roboflow.com/u/Yashu_S)\
**Post date:** [April 13, 2024, 8:42pm UTC](https://discuss.roboflow.com/t/numpy-compatibility-issue-with-the-object-counter-using-bytetrack-and-supervision/5284/1 "2024-04-13T20:42:05Z")

</div>

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](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-and-count-vehicles-with-yolov8.ipynb?ref=blog.roboflow.com))

and this is the error, I keep getting while running the last cell code:

```auto
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,

```

```auto
 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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [May 4, 2024, 8:42pm UTC](https://discuss.roboflow.com/t/numpy-compatibility-issue-with-the-object-counter-using-bytetrack-and-supervision/5284/2 "2024-05-04T20:42:06Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
