# Detections object has no attribute "from\_yolov8"

**URL:** <https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703>\
**Category:** 🤝  Community Help\
**Created:** [November 14, 2023, 3:11am UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703 "2023-11-14T03:11:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nhân\_Dương\_Sĩ](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/nh%C3%A2n_d%C6%B0%C6%A1ng_s%C4%A9/32/2951_2.png) [@Nhân\_Dương\_Sĩ](https://discuss.roboflow.com/u/Nh%C3%A2n_D%C6%B0%C6%A1ng_S%C4%A9)\
**Post date:** [November 14, 2023, 3:11am UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703/1 "2023-11-14T03:11:10Z")

</div>

Hello All,  
when I ran the program counting and tracking objects using Supervision, I got the error as in the image below. Could anyone help me fix it, please? Thank you in advance.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/9/929757883af6ab926766d9e055db163e552ac56a.png)

---

<div class="post-metadata">

**Author:** ![Lenny](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lenny/32/2383_2.png) [@Lenny](https://discuss.roboflow.com/u/Lenny)\
**Post date:** [November 14, 2023, 3:13am UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703/2 "2023-11-14T03:13:04Z")

</div>

I’m sorry, but as an AI, I’m unable to view or interpret images. However, I can help you troubleshoot common issues with the Supervision library.

One common issue mentioned in the [forum post](https://discuss.roboflow.com/t/1569) is an AttributeError: module ‘supervision’ has no attribute ‘get\_video\_frames\_generator’. If this is the error you’re encountering, it might be due to changes in the Supervision API as it’s still in beta.

If you’re using a different version of Supervision, you might want to try installing the specific version mentioned in the [blog post](https://blog.roboflow.com/yolov8-tracking-and-counting/):

```python
pip install supervision==0.1.0

```

If you’re still encountering issues, I recommend checking out the [Supervision documentation](https://roboflow.github.io/supervision/) or the [Roboflow help pages](https://help.roboflow.com/en_US/object-detection) for more information. You can also refer to the example notebooks provided in the [blog post](https://blog.roboflow.com/supervision/) for guidance.

* * *

> Hi! I’m Roboflow’s AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, and forum. If this solves your issue, please mark it as the solution using the checkbox icon. If this doesn’t solve your issue, please follow up with what you’ve tried/why, and the community will continue to chime in as usual.

---

<div class="post-metadata">

**Author:** ![Nhân\_Dương\_Sĩ](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/nh%C3%A2n_d%C6%B0%C6%A1ng_s%C4%A9/32/2951_2.png) [@Nhân\_Dương\_Sĩ](https://discuss.roboflow.com/u/Nh%C3%A2n_D%C6%B0%C6%A1ng_S%C4%A9)\
**Post date:** [November 14, 2023, 3:44am UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703/3 "2023-11-14T03:44:09Z")

</div>

Thank you for your reply, the version of Supervision I installed is 0.16.0, is this version better or worse than 0.1.0? Thank you!

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [November 21, 2023, 12:21am UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703/4 "2023-11-21T00:21:32Z")

</div>

Hi @Nhân_Dương_Sĩ

Newer versions have a higher number, and newer versions are better 😄

[Supervision depreciated](https://github.com/roboflow/supervision/issues/253) the `from_yolov8` method in favor of `from_ultralytics`. If you just replace that part, it should work.

Did you get that code from one of our examples, blog posts, or other content from us? If so, if you could share it so we can update it, we’d appreciate it.

Also, I highly recommend looking at [the docs](https://supervision.roboflow.com/).

---

<div class="post-metadata">

**Author:** ![Nhân\_Dương\_Sĩ](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/nh%C3%A2n_d%C6%B0%C6%A1ng_s%C4%A9/32/2951_2.png) [@Nhân\_Dương\_Sĩ](https://discuss.roboflow.com/u/Nh%C3%A2n_D%C6%B0%C6%A1ng_S%C4%A9)\
**Post date:** [November 21, 2023, 1:01pm UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703/5 "2023-11-21T13:01:17Z")

</div>

Thank you for your reply but in the program I use, from\_yolov8 and from\_ultralytics are completely different, I’ve tried each and only from\_yolov8 works in the program.

---

<div class="post-metadata">

**Author:** ![Nhân\_Dương\_Sĩ](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/nh%C3%A2n_d%C6%B0%C6%A1ng_s%C4%A9/32/2951_2.png) [@Nhân\_Dương\_Sĩ](https://discuss.roboflow.com/u/Nh%C3%A2n_D%C6%B0%C6%A1ng_S%C4%A9)\
**Post date:** [November 21, 2023, 5:43pm UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703/6 "2023-11-21T17:43:11Z")

</div>

The code I use is from the video named " YOLOv8 native tracking | Step-by-step tutorial | Tracking with Live Webcam Stream".

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [November 22, 2023, 12:05am UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703/7 "2023-11-22T00:05:35Z")

</div>

Hi @Nhân_Dương_Sĩ

Are you saying that `from_ultralytics` is not working? If so, could you try updating to the latest version of Supervision using:

```auto
pip install --upgrade supervision

```

---

<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:** [November 29, 2023, 12:06am UTC](https://discuss.roboflow.com/t/detections-object-has-no-attribute-from-yolov8/3703/8 "2023-11-29T00:06:31Z")

</div>

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