ifzhang/ByteTrack

error in installing ByteTrack for YOLOv8 tracking

litaldavar opened this issue · 4 comments

Installing ByteTrack gets an error. The reason is a new version of ONNOX from Feb 2023

%cd {HOME}
!git clone https://github.com/ifzhang/ByteTrack.git
!cd ByteTrack && pip3 install -q -r requirements.txt
!cd ByteTrack && python3 setup.py -q develop
!pip install -q cython_bbox
!pip install -q onemetric

from IPython import display
display.clear_output()

import sys
sys.path.append(f"{HOME}/ByteTrack")

import yolox
print("yolox.version:", yolox.version)

error is:

ModuleNotFoundError Traceback (most recent call last)
in
14
15
---> 16 import yolox
17 print("yolox.version:", yolox.version)

2 frames
/content/gdrive/MyDrive/beetles_boris/ByteTrack/yolox/utils/checkpoint.py in
2 # -- coding:utf-8 --
3 # Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
----> 4 from loguru import logger
5
6 import torch

ModuleNotFoundError: No module named 'loguru'

I faced the same issue today

eems the requirements aren't all installed properly you need to install these modules seprately
!pip install loguru
!pip install thop
!pip install lap

s4ifbn commented

having a problem installing lap package for apple M1

even i got the same problem and ended up running this:

!git clone https://github.com/ifzhang/ByteTrack.git
!cd ByteTrack && pip3 install -r requirements.txt
!cd ByteTrack && python3 setup.py develop
!pip install cython_bbox lap loguru
!pip install onemetric --quiet