Adamdad / DeRy

[NeurIPS2022] Deep Model Reassembly
256 stars 11 forks source link

ModuleNotFoundError: No module named 'matplotlib.blocking_input' #7

Closed yaolu-zjut closed 1 year ago

yaolu-zjut commented 1 year ago

Hi Authors, When I try to run get_rep.py, it raised the error: ModuleNotFoundError: No module named 'matplotlib.blocking_input'. It seems to be attributed to 'mmcls', so How should I do?

The version of my matplotlib is 3.7.1.

ntraft commented 1 day ago

Can be fixed by downgrading matplotlib:

pip install matplotlib==3.6.3

As of the time of writing, these are the versions of software that I needed to install to get everything working:

pip install openmim
mim install mmcv==1.4.8
mim install mmcls==0.18.0
pip install timm==0.6.13
pip install matplotlib==3.6.3
pip install numpy==1.26.4
pip install yapf==0.32.0