open-mmlab / mmpretrain

OpenMMLab Pre-training Toolbox and Benchmark
https://mmpretrain.readthedocs.io/en/latest/
Apache License 2.0
3.49k stars 1.08k forks source link

How to use the visualization of mmpretrain in mmfewshot? #1497

Closed jianandeng023 closed 1 year ago

jianandeng023 commented 1 year ago

描述该功能

Recently I needed to use cam heat maps for my research on mmfewshot, but when I called grad-cam in mmpretrain I got various errors on mmfewshot. I want to provide an interface for mmfewshot to use the mmpretrain visualization tool

是否希望自己实现该功能?

Ezra-Yu commented 1 year ago

I'm very sorry, it's not very easy to implement at the moment. You may need to modify a lot of code and it is recommended to use grad_cam directly instead of based on mmpretrain.

Because mmpretrain and mmfewshot use different versions of mmcv and can't run at the same time, and mmfewshot has no lack of people to maintain no upgrades.

jianandeng023 commented 1 year ago

I'm very sorry, it's not very easy to implement at the moment. You may need to modify a lot of code and it is recommended to use grad_cam directly instead of based on mmpretrain.

Because mmpretrain and mmfewshot use different versions of mmcv and can't run at the same time, and mmfewshot has no lack of people to maintain no upgrades.

Can I ask you for some good advice

Ezra-Yu commented 1 year ago

Just use the grad_cam package!