Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Res FFT-Conv Block" in MPRNet #12

Closed
misakshoyan opened this issue Jan 7, 2022 · 1 comment
Closed

"Res FFT-Conv Block" in MPRNet #12

misakshoyan opened this issue Jan 7, 2022 · 1 comment

Comments

@misakshoyan
Copy link

misakshoyan commented Jan 7, 2022

In MPRNet, the Channel Attention Block (CAB) has the following structure:

`class CAB(nn.Module):
def init(self, n_feat, kernel_size, reduction, bias, act):
super(CAB, self).init()
modules_body = []

    # ResBlock
    modules_body.append(conv(n_feat, n_feat, kernel_size, bias=bias))
    modules_body.append(act)
    modules_body.append(conv(n_feat, n_feat, kernel_size, bias=bias))
    ###

    self.CA = CALayer(n_feat, reduction, bias=bias)
    self.body = nn.Sequential(*modules_body)

def forward(self, x):
    res = self.body(x)
    res = self.CA(res)
    res += x
    return res`

In the paper, for Table 1, it is stated that ResBlock is replaced by "Res FFT-Conv Block".
I wonder how do you integrate the "Res FFT-Conv Block" into CAB in your experiments?
Do you just replace the ResBlock structure by "Res FFT-Conv Block" (please see my comments in the code) or you replace the whole CAB by "Res FFT-Conv Block"?

Thanks in advance.

@INVOKERer
Copy link
Owner

INVOKERer commented Jan 7, 2022

Table 1 replace the whole CAB by "Res FFT-Conv Block".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants