muratali016 / Yolov7-Object-Counter-Custom-Funcitons

Object Counting with the newest yolov7
Apache License 2.0
118 stars 32 forks source link

How to run TRACK SOURCE.py #2

Closed AT9991 closed 1 year ago

AT9991 commented 1 year ago

Hi there,

Great repo! How to run TRACK SOURCE.py? I clone the yolov7 file and copied the TRACK SOURCE.py file. when I run it gives the following error:

Traceback (most recent call last): File "track_source.py", line 31, in from yolov7.models.experimental import attempt_load ModuleNotFoundError: No module named 'yolov7'

Please help me to debug it.

muratali016 commented 1 year ago

@AT9991 Hi thanks. You can use that Colab file to run track: https://colab.research.google.com/drive/1RK1IgQx6Fr7D2BwgCQJiUiZPclj69Myv?usp=sharing

please don't forget that you have to change track.py file with these codes here https://drive.google.com/file/d/1ZZvsDL4up29cVjt2hcOKwi795o07PULM/view?usp=sharing

AT9991 commented 1 year ago

@muratali016 Hi thanks for the instructions. I followed the steps, but getting this error. Please check. Thank you

/content/Yolov7_StrongSORT_OSNet/strong_sort/deep/reid/torchreid/metrics/rank.py:11: UserWarning: Cython evaluation (very fast so highly recommended) is unavailable, now use python evaluation. warnings.warn( Fusing layers... RepConv.fuse_repvgg_block RepConv.fuse_repvgg_block RepConv.fuse_repvgg_block IDetect.fuse Model: osnet_x0_25

muratali016 commented 1 year ago

You have to use cuda which is GPU in your local or in your notebook otherwise you must change some lines as the error says