Skip to content

Commit

Permalink
Update mmcv version (#345)
Browse files Browse the repository at this point in the history
* update mmcv version

* fix type
  • Loading branch information
hhaAndroid committed Nov 30, 2021
1 parent 6eee561 commit 9654e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mmtrack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .version import __version__, version_info

MMCV_MIN = '1.3.8'
MMCV_MAX = '1.4.0'
MMCV_MAX = '1.5.0'

MMDET_MIN = '2.14.0'

Expand Down Expand Up @@ -58,9 +58,9 @@ def digit_version(version_str: str, length: int = 4):
mmcv_version = digit_version(mmcv.__version__)


assert (mmcv_min_version <= mmcv_version < mmcv_max_version), \
assert (mmcv_min_version <= mmcv_version <= mmcv_max_version), \
f'MMCV=={mmcv.__version__} is used but incompatible. ' \
f'Please install mmcv>={MMCV_MIN}, <{MMCV_MAX}.'
f'Please install mmcv>={MMCV_MIN}, <={MMCV_MAX}.'

mmdet_min_version = digit_version(MMDET_MIN)
mmdet_version = digit_version(mmdet.__version__)
Expand Down

0 comments on commit 9654e87

Please sign in to comment.