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

Shortcut connection / Residual structure in unnecessary for RRDB #135

Open
gau-nernst opened this issue Apr 25, 2023 · 0 comments
Open

Shortcut connection / Residual structure in unnecessary for RRDB #135

gau-nernst opened this issue Apr 25, 2023 · 0 comments

Comments

@gau-nernst
Copy link

I think the outer shortcut connection is unnecessary for RRDB. There is already a shortcut connection for Dense blocks, thus the original input is already propagated through the dense blocks. Adding an extra outermost shortcut connection will be equivalent to

output = (1 + beta) * input + beta * residual(input)

where beta is 0.2 in this repo. In other words, the input is scaled by a factor of (1 + beta). When stacking a lot of RRDB blocks, the input grows exponentially (1 + beta)^(n_blocks). Perhaps this is why residual scaling is necessary for ESRGAN?

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