diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-11 18:25:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 18:25:15 +0000 |
commit | abe32cefa39dee36d7f661d4e63c28ea8dd60c4f (patch) | |
tree | 1f1d817b59b49c6d3944c959151ce4c67d9041da /modules/esrgan_model_arch.py | |
parent | b4aaa339d529c81859858f0bedcc72b44fccd3d0 (diff) | |
parent | 49a55b410b66b7dd9be9335d8a2e3a71e4f8b15c (diff) | |
download | stable-diffusion-webui-gfx803-abe32cefa39dee36d7f661d4e63c28ea8dd60c4f.tar.gz stable-diffusion-webui-gfx803-abe32cefa39dee36d7f661d4e63c28ea8dd60c4f.tar.bz2 stable-diffusion-webui-gfx803-abe32cefa39dee36d7f661d4e63c28ea8dd60c4f.zip |
Merge pull request #10285 from akx/ruff-spacing
Indentation + ruff whitespace fixes
Diffstat (limited to 'modules/esrgan_model_arch.py')
-rw-r--r-- | modules/esrgan_model_arch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/esrgan_model_arch.py b/modules/esrgan_model_arch.py index 4de9dd8d..2b9888ba 100644 --- a/modules/esrgan_model_arch.py +++ b/modules/esrgan_model_arch.py @@ -105,7 +105,7 @@ class ResidualDenseBlock_5C(nn.Module): Modified options that can be used:
- "Partial Convolution based Padding" arXiv:1811.11718
- "Spectral normalization" arXiv:1802.05957
- - "ICASSP 2020 - ESRGAN+ : Further Improving ESRGAN" N. C.
+ - "ICASSP 2020 - ESRGAN+ : Further Improving ESRGAN" N. C.
{Rakotonirina} and A. {Rasoanaivo}
"""
@@ -170,7 +170,7 @@ class GaussianNoise(nn.Module): scale = self.sigma * x.detach() if self.is_relative_detach else self.sigma * x
sampled_noise = self.noise.repeat(*x.size()).normal_() * scale
x = x + sampled_noise
- return x
+ return x
def conv1x1(in_planes, out_planes, stride=1):
return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)
|