aboutsummaryrefslogtreecommitdiffstats
path: root/modules/codeformer/vqgan_arch.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-12-25 06:16:08 +0000
committerGitHub <noreply@github.com>2022-12-25 06:16:08 +0000
commitb12de850ae8bcd6f99817c6622b4cd2f04410ff5 (patch)
treedf26b5510f07b645e7edf68c47220f595ef5a538 /modules/codeformer/vqgan_arch.py
parenta66514e1a35a3d140e6242e553b5fd0c5bec42f4 (diff)
parent3bf5591efe9a9f219c6088be322a87adc4f48f95 (diff)
downloadstable-diffusion-webui-gfx803-b12de850ae8bcd6f99817c6622b4cd2f04410ff5.tar.gz
stable-diffusion-webui-gfx803-b12de850ae8bcd6f99817c6622b4cd2f04410ff5.tar.bz2
stable-diffusion-webui-gfx803-b12de850ae8bcd6f99817c6622b4cd2f04410ff5.zip
Merge pull request #5992 from yuvalabou/F541
Fix F541: f-string without any placeholders
Diffstat (limited to 'modules/codeformer/vqgan_arch.py')
-rw-r--r--modules/codeformer/vqgan_arch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/codeformer/vqgan_arch.py b/modules/codeformer/vqgan_arch.py
index c06c590c..e7293683 100644
--- a/modules/codeformer/vqgan_arch.py
+++ b/modules/codeformer/vqgan_arch.py
@@ -382,7 +382,7 @@ class VQAutoEncoder(nn.Module):
self.load_state_dict(torch.load(model_path, map_location='cpu')['params'])
logger.info(f'vqgan is loaded from: {model_path} [params]')
else:
- raise ValueError(f'Wrong params!')
+ raise ValueError('Wrong params!')
def forward(self, x):
@@ -431,7 +431,7 @@ class VQGANDiscriminator(nn.Module):
elif 'params' in chkpt:
self.load_state_dict(torch.load(model_path, map_location='cpu')['params'])
else:
- raise ValueError(f'Wrong params!')
+ raise ValueError('Wrong params!')
def forward(self, x):
return self.main(x) \ No newline at end of file