Traceback (most recent call last):
File "<here>/mmsegmentation/tools/analysis_tools/get_flops.py", line 124, in <module>
main()
File "<here>/workspace/mmsegmentation/tools/analysis_tools/get_flops.py", line 98, in main
result = inference(args, logger)
File "<here>/workspace/mmsegmentation/tools/analysis_tools/get_flops.py", line 85, in inference
outputs = get_model_complexity_info(
File "<me>/.local/lib/python3.10/site-packages/mmengine/analysis/print_helper.py", line 725, in get_model_complexity_info
raise ValueError('"input_shape" and "inputs" cannot be both set.')
ValueError: "input_shape" and "inputs" cannot be both set.
The following error lines can be corrected:
These lines: https://github.com/open-mmlab/mmsegmentation/blob/30a3f94f3e2916e27fa38c67cc3b8c69c1893fe8/tools/analysis_tools/get_flops.py#L87
should be replaced by: