open-mmlab / mmfewshot

OpenMMLab FewShot Learning Toolbox and Benchmark
https://mmfewshot.readthedocs.io/en/latest/
Apache License 2.0
695 stars 117 forks source link

ImportError: cannot import name 'compat_cfg' from 'mmfewshot.utils' #151

Open Radiantzy opened 3 weeks ago

Radiantzy commented 3 weeks ago

In the process of using the latest version of mmfewshot, the above error was encountered, attempts to lower the version of mmcv-full from 1.7.2 to 1.6.0 failed,

41bcb7d46d0066b4aff4bdcc7def007

Then, if you install the latest version of mmcv-full and mmfewshot, you can run the code successfully, but the following compat_cfg cannot import error is reported in mmfewshot.utils. How to solve it or how to modify the init file?