open-mmlab / mmsegmentation

OpenMMLab Semantic Segmentation Toolbox and Benchmark.
https://mmsegmentation.readthedocs.io/en/main/
Apache License 2.0
7.7k stars 2.53k forks source link

get_flops.py has problem #3581

Open Cj-lwh opened 4 months ago

Cj-lwh commented 4 months ago

i'm using mmsegmentation1.12.0 to get flops of the models. when i run the commond provided by the author "python tools/analysis_tools/get_flops.py ${CONFIG_FILE} [--shape ${INPUT_SHAPE}]" there is an error occur: " File "d:/graduation project/mmsegmentation-main/mmsegmentation/tools/analysis_tools/get_flops.py", line 12, in from mmseg.models import BaseSegmentor File "c:\users\sgiit\mmsegmentation\mmseg__init__.py", line 58, in assert (mmcv_min_version <= mmcv_version < mmcv_max_version), \ AssertionError: MMCV==2.1.0 is used but incompatible. Please install mmcv>=(1, 3, 13, 0, 0, 0), <(1, 7, 0, 0, 0, 0). " it seems like this file was remained from mmsegmentation0.x. why the author didn't fix this bug?