Description
Prerequisite
- I have searched Issues and Discussions but cannot get the expected help.
- The bug has not been fixed in the latest version (0.x) or latest version (1.x).
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmocr
Environment
!pip install -U openmim
!mim install mmengine
!mim install 'mmcv>=2.0.0rc1'
!mim install 'mmdet>=3.0.0rc0'
Reproduces the problem - code sample
https://colab.research.google.com/github/open-mmlab/mmocr/blob/dev-1.x/demo/tutorial.ipynb
Reproduces the problem - command or script
from mmocr.apis import MMOCRInferencer
Reproduces the problem - error message
AssertionError: MMDetection 3.2.0 is incompatible with MMOCR 1.0.1. Please use MMDetection >= 3.0.0rc5, < 3.2.0 instead.
Additional information
I tried to install mmocr using mim and followed instructions. On runing the from mmocr.apis import MMOCRInferencer I got AssertionError: MMDetection 3.2.0 is incompatible with MMOCR 1.0.1. Please use MMDetection >= 3.0.0rc5, < 3.2.0 instead. After that I tried to do pip install mmdet==3.1.0, but then I got ERROR: Failed building wheel for mmcv. Could say I got into cycle. I didn't found any issue with this problem. Also this code was working fine a month ago but after the latest update of mmdet 3.2.0 (start of the October 2023), I'm getting this error. Do you know what I can do with this problem or this is some sort of bug?