mmcv icon indicating copy to clipboard operation
mmcv copied to clipboard

Effective Receptive Field visualization

Open iumyx2612 opened this issue 2 years ago • 1 comments

Describe the feature Able to visualize the Effective Receptive Field (ERF) of a given layer
image
Picture taken from Segformer paper: https://arxiv.org/pdf/2105.15203.pdf Motivation I want to know why my model fails

Related resources I found a receptive visualization implemented in Pytorch: https://github.com/shelfwise/receptivefield but I don't know if the implementation is correct, also I ran into 'nan' bug often, mentioned in their repo. Segformer ERF visualization implemented based on ERF paper but they didn't provide the code

iumyx2612 avatar Jul 03 '22 14:07 iumyx2612

Thanks for your suggestion! I think it is a great feature, and we may support it in the future. We will contact you(@ your and link this issue) the first time if we are ready for this. Looking forward to working with you on this feature~

HAOCHENYE avatar Jul 04 '22 03:07 HAOCHENYE

@iumyx2612 did you manage to generate/visualize the ERF for transformer-based models like SegFormer?

netzahdzc avatar Apr 14 '23 17:04 netzahdzc

@iumyx2612 did you manage to generate/visualize the ERF for transformer-based models like SegFormer?

You can follow this repo https://github.com/DingXiaoH/RepLKNet-pytorch

iumyx2612 avatar Apr 14 '23 17:04 iumyx2612