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

A mistake in SSPSR.py #11

Open
murphyhoucn opened this issue Sep 11, 2024 · 0 comments
Open

A mistake in SSPSR.py #11

murphyhoucn opened this issue Sep 11, 2024 · 0 comments

Comments

@murphyhoucn
Copy link

There is a mistake in the code file SSPSR.py, line 81 to 87. The code is below.

        if self.shared:
            self.branch = BranchUnit(n_subs, n_feats, n_blocks, act, res_scale, up_scale=n_scale//2, conv=default_conv)
            # up_scale=n_scale//2 means that we upsample the LR input n_scale//2 at the branch network, and then conduct 2 times upsampleing at the global network
        else:
            self.branch = nn.ModuleList()
            for i in range(self.G):
                self.branch.append(BranchUnit(n_subs, n_feats, n_blocks, act, res_scale, up_scale=2, conv=default_conv))

The parameter in line 87 up_scale=2 should alse be 'up_scale=n_scale//2'. if not, the tensor addition may result in tensor size mismatch.

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

1 participant