roboflow / notebooks

Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.
https://roboflow.com/models
4.78k stars 744 forks source link

Attributr Error : Supervision has no attribute detections #182

Closed Janvi161945 closed 10 months ago

Janvi161945 commented 10 months ago

Search before asking

Notebook name

COUNT_VECHICLES_YOLOV8.zip

Bug

AttributeError Traceback (most recent call last) in <cell line: 8>() 6 model = YOLO('yolov8s.pt') 7 result = model(IMAGE)[0] ----> 8 detections = sv.Detections.from_ultralytics(result)

Environment

-Google Colab

Minimal Reproducible Example

IMAGE = '/content/1 (10).jpg'
import supervision as sv
from ultralytics import YOLO

model = YOLO('yolov8s.pt')
result = model(IMAGE)[0]
detections = sv.Detections.from_ultralytics(result)

Additional

No response

Are you willing to submit a PR?

github-actions[bot] commented 10 months ago

👋 Hello @Janvi161945, thank you for leaving an issue on Roboflow Notebooks.

🐞 Bug reports

If you are filing a bug report, please be as detailed as possible. This will help us more easily diagnose and resolve the problem you are facing. To learn more about contributing, check out our Contributing Guidelines.

If you require support with custom code that is not part of Roboflow Notebooks, please reach out on the Roboflow Forum or on the GitHub Discussions page associated with this repository.

💬 Get in touch

Do you have more questions about Roboflow that we haven't responded to yet? Feel free to ask them on the Roboflow Discuss forum. Our developer advocates and community team actively respond to questions there.

To ask questions about Notebooks, head over to the GitHub Discussions section of this repository.

SkalskiP commented 10 months ago

Hi, @Janvi161945 👋🏻! I'm sorry, but your colab is almost empty. Can you provide a reproducible example showing how you install supervision?

Janvi161945 commented 10 months ago

Hello, @SkalskiP I have install it using !pip install supervision==0.1.0

SkalskiP commented 10 months ago

You need to bump version to latest one.

Janvi161945 commented 10 months ago

Done ! the code is working Thanks @SkalskiP