Skip to content

Commit

Permalink
[Fix] Fix mmdet digit version (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaotongxiao authored Apr 6, 2023
1 parent 16de16f commit e0a78c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmocr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
mmengine_maximum_version = '1.0.0'
mmengine_version = digit_version(mmengine.__version__)

if mmcv_version < digit_version('2.0.0rc0') or mmdet.__version__ < '3.0.0rc0':
if not mmengine or mmcv_version < digit_version('2.0.0rc0') or digit_version(
mmdet.__version__) < digit_version('3.0.0rc0'):
raise RuntimeError(
'MMOCR 1.0 only runs with MMEngine, MMCV 2.0.0rc0+ and '
'MMDetection 3.0.0rc0+, but got MMCV '
Expand Down

0 comments on commit e0a78c0

Please sign in to comment.