Skip to content

Commit

Permalink
Merge pull request #65 from BirenMer/import-correction
Browse files Browse the repository at this point in the history
updating imports for torchreid
  • Loading branch information
mikel-brostrom committed May 28, 2024
2 parents 2c2d537 + 30376a2 commit 6ffb15b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions reid_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

from yolov7.utils.general import colorstr
from yolov7.utils.add_nms import LOGGER
from strong_sort.deep.reid.torchreid.utils.feature_extractor import FeatureExtractor
from strong_sort.deep.reid.torchreid.models import build_model
from strong_sort.deep.reid.torchreid.utils.reid.feature_extractor import FeatureExtractor
from strong_sort.deep.reid.torchreid.reid.models import build_model
from strong_sort.deep.reid_model_factory import get_model_name


Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ flake8
yapf
isort==4.3.21
imageio
torchreid

# Export --------------------------------------
#onnx>=1.9.0 # ONNX export
#onnx-simplifier>=0.4.1 # ONNX simplifier
#tensorflow>=2.4.1 # TFLite export (or tensorflow-cpu, tensorflow-aarch64)
#openvino-dev # OpenVINO export
#git+https://github.com/PINTO0309/openvino2tensorflow #OpenVINO to TFLite export
#git+https://github.com/PINTO0309/openvino2tensorflow #OpenVINO to TFLite export
4 changes: 2 additions & 2 deletions strong_sort/reid_multibackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from os.path import exists as file_exists
from .deep.reid_model_factory import show_downloadeable_models, get_model_url, get_model_name

from torchreid.utils import FeatureExtractor
from torchreid.utils.tools import download_url
from torchreid.reid.utils import FeatureExtractor
from torchreid.reid.utils.tools import download_url


def check_suffix(file='yolov5s.pt', suffix=('.pt',), msg=''):
Expand Down
2 changes: 1 addition & 1 deletion strong_sort/sort/nn_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import torch
sys.path.append('strong_sort/deep/reid')
from torchreid.metrics.distance import compute_distance_matrix
from torchreid.reid.metrics.distance import compute_distance_matrix


def _pdist(a, b):
Expand Down
4 changes: 2 additions & 2 deletions strong_sort/strong_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from .sort.tracker import Tracker
from .deep.reid_model_factory import show_downloadeable_models, get_model_url, get_model_name

from torchreid.utils import FeatureExtractor
from torchreid.utils.tools import download_url
from torchreid.reid.utils import FeatureExtractor
from torchreid.reid.utils.tools import download_url
from .reid_multibackend import ReIDDetectMultiBackend

__all__ = ['StrongSORT']
Expand Down

0 comments on commit 6ffb15b

Please sign in to comment.