use version_info of mmcv
@@ -2,9 +2,9 @@ import mmcv
from .version import __version__, version_info
-MMCV_MIN = '1.3'
-MMCV_MAX = '1.4'
-
+try:
+ from mmcv.utils import digit_version
+except ImportError:
def digit_version(version_str):
digit_ver = []
@@ -18,6 +18,9 @@ def digit_version(version_str):
return digit_ver
+MMCV_MIN = '1.3'
+MMCV_MAX = '1.5'
+
mmcv_min_version = digit_version(MMCV_MIN)
mmcv_max_version = digit_version(MMCV_MAX)
mmcv_version = digit_version(mmcv.__version__)
