kadirnar / bytetrack-pip

Packaged version of the ByteTrack repository
MIT License
39 stars 11 forks source link

ModuleNotFoundError: No module named 'yolov5' #3

Closed SkalskiP closed 1 year ago

SkalskiP commented 1 year ago

Reproduction path

  1. Install bytetracker
pip install bytetracker
  1. Import bytetracker
import bytetracker

Stacktrace

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-6-447665eda60c>](https://localhost:8080/#) in <module>
      5 display.clear_output()
      6 
----> 7 import bytetracker
      8 print("bytetracker.__version__:", bytetracker.__version__)

1 frames
[/usr/local/lib/python3.9/dist-packages/bytetracker/byte_tracker.py](https://localhost:8080/#) in <module>
      1 import numpy as np
----> 2 from yolov5.utils.general import xywh2xyxy, xyxy2xywh
      3 
      4 from bytetracker import matching
      5 from bytetracker.basetrack import BaseTrack, TrackState

ModuleNotFoundError: No module named 'yolov5'

---------------------------------------------------------------------------
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.
---------------------------------------------------------------------------

It looks like you use yolov5 in your code, but it is not part of the dependencies.

kadirnar commented 1 year ago

Thank you for the feedback. I will delete the yolov5 library in this library. I will write and update the functions.

SkalskiP commented 1 year ago

It would be awesome, as I wanted to use that lib in one of our tutorials.

kadirnar commented 1 year ago

Can you check?

I'm sorry for the late reply. Now I am doing projects on generative models.

SimonCL17 commented 1 year ago

Hi there, I am new to ByteTrack but I am looking at using YoloV5 as the detector. Is there a way for me to get an older version of the repo that included the YoloV5 library? Thanks

kadirnar commented 1 year ago

Hi there, I am new to ByteTrack but I am looking at using YoloV5 as the detector. Is there a way for me to get an older version of the repo that included the YoloV5 library? Thanks

Why do you want the old version? Which version are you using? Are you using yolov5-pip?