c-yn / FocalNet

[ICCV23] Focal Network for Image Restoration
MIT License
52 stars 3 forks source link

about FSM #6

Closed kkllww closed 8 months ago

kkllww commented 8 months ago

What is the code for FSM and the specific process for obtaining high frequencies

c-yn commented 8 months ago

Hi, FSM is implemented by class LocalAttention. We obtain the high frequencies by subtracting the lowest frequency from the input features.

kkllww commented 8 months ago

May I ask which specific code in FocalNet.py you have published to obtain high frequencies? Please indicate the specific number of lines. I did not find the relevant code for subtracting the lowest frequency from the input features

c-yn commented 8 months ago

Hi, Line 57 in FocalNet.py.