mmcv
mmcv copied to clipboard
Effective Receptive Field visualization
Describe the feature
Able to visualize the Effective Receptive Field (ERF) of a given layer
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
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~
@iumyx2612 did you manage to generate/visualize the ERF for transformer-based models like SegFormer?
@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