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
5.27k stars 814 forks source link

attribute error boxannotator #222

Closed MuhammedEnesGurkan closed 10 months ago

MuhammedEnesGurkan commented 10 months ago

Search before asking

Notebook name

https://blog.roboflow.com/yolov8-tracking-and-counting/ ı cannot find relevant notebook

Bug

AttributeError: module 'supervision' has no attribute 'BoxAnnotator'

Environment

python 3.9 pycharm

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

SkalskiP commented 10 months ago

Hi, @koftee! 👋🏻 Thanks a lot for your interest in Notebooks and Supervision. What version of Supervision have you installed, and how did you install it?

MuhammedEnesGurkan commented 10 months ago

Hi, @koftee! 👋🏻 Thanks a lot for your interest in Notebooks and Supervision. What version of Supervision have you installed, and how did you install it?

0.1.0 and i install it in pycharm. At project section i write supervision and install the 0.1.0 version

MuhammedEnesGurkan commented 10 months ago

Hi, @koftee! 👋🏻 Thanks a lot for your interest in Notebooks and Supervision. What version of Supervision have you installed, and how did you install it?

Thanks for your help i fixed the error but now i have different error it says Detections no attiribute from yolo_v8

SkalskiP commented 10 months ago

@koftee, replace it with from_ultralytics.

MuhammedEnesGurkan commented 10 months ago

File "C:\PycharmProjects\yolocount\test.py", line 81, in zada() File "C:\PycharmProjects\yolocount\test.py", line 62, in zada labels = [ ^ File "C:\PycharmProjects\yolocount\test.py", line 63, in f"{model.names[int(class_id)]} {confidence:0.2f}" TypeError: unsupported format string passed to NoneType.format