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.43k stars 855 forks source link

YOLOv8 Supervision library dependency broken #64

Closed cornking03 closed 1 year ago

cornking03 commented 1 year ago

Search before asking

Notebook name

Track and Count Vehicles with YOLOv8 + ByteTRACK + Supervision

Bug

Supervision library was updated from 0.1.0 to 0.2.0. It looks like there was enough changed that this broke the imports.

image

Environment

Google Colab

Minimal Reproducible Example

See screenshot in Bug section

Additional

I believe imports can be fixed using the following:

from supervision.draw.color import ColorPalette
from supervision.geometry.core import Point
from supervision.video import VideoInfo, get_video_frames_generator, VideoSink
from supervision.notebook.utils import show_frame_in_notebook
from supervision.detection.core import Detections, BoxAnnotator
from supervision.detection.line_counter import LineZone, LineZoneAnnotator

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

👋 Hello @cornking03, 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 1 year ago

Hi, @cornking03 👋🏻! Thanks a lot for the fast reaction 🙏🏻! The notebook should work now. I just pushed the fixed version. We released Supervision 0.2.0 and introduced many new cool features and breaking changes. For this notebook to work, you need to stay at 0.1.0.

Thank you for that issue once again!

SkalskiP commented 1 year ago

No updates. Looks like the problem is gone. I'm closing the issue.