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.89k stars 759 forks source link

No module named 'ultralytics.yolo.utils.callbacks.dvc' #146

Closed NatalieCheong closed 1 year ago

NatalieCheong commented 1 year ago

Search before asking

Notebook name

[Track and Count Vehicles with YOLOv8 + ByteTRACK + Supervision]. Hi, when I follow this tutorial: Track and Count Objects Using YOLOv8 and using the provided notebook. When I implement the last cell got an error: No module named 'ultralytics.yolo.utils.callbacks.dvc'. Because of this error, I can't implement the same cell for the candies.mp4 from the same tutorial.

Bug

Screenshot 2023-06-11 at 10 34 08 AM Screenshot 2023-06-11 at 10 33 59 AM

Environment

Google Colab

Minimal Reproducible Example

When run the code snippet, it throws an error: ---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-26-5c4bce63dff3> in <cell line: 17>()
     19     for frame in tqdm(generator, total=video_info.total_frames):
     20         # model prediction on single frame and conversion to supervision Detections
---> 21         results = model(frame)[0]
     22         detections = Detections(
     23             xyxy=results[0].boxes.xyxy.cpu().numpy(),

4 frames
/usr/local/lib/python3.10/dist-packages/ultralytics/yolo/utils/callbacks/base.py in add_integration_callbacks(instance)

ModuleNotFoundError: No module named 'ultralytics.yolo.utils.callbacks.dvc'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Additional

No response

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

👋 Hello @NatalieCheong, 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 👋🏻 Is that happening in our current notebook?

NatalieCheong commented 1 year ago

Hi, thank you for the reply. Yes. It was happening in your current notebook. I was follow the tutorial 'Track and Count Objects Using YOLOv8' and I click the 'tutorial' button in this tutorial which direct me to Google Colab notebook, and the notebook is: how-to-track-and-count-vehicles-with-yolov8.ipynb.

SkalskiP commented 1 year ago

@NatalieCheong I'll investigate today 🙏🏻

NatalieCheong commented 1 year ago

Hi, just now I try to re-implement all the code snippet in the same notebook, and all the code snippet has been successfully implement without any error. The previous error for the last code snippet(which is for vehicle-counting-result.mp4) has been resolve. Thank you.

SkalskiP commented 1 year ago

It looks like the problem solved itself. I'm closing the issue.