diff options
author | d8ahazard <d8ahazard@gmail.com> | 2022-10-02 12:56:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 12:56:22 +0000 |
commit | 5d26ba2b4b84b64d82150ae70495f928b3b0b116 (patch) | |
tree | 71cb73ba018dab302ea1dfa8c3f368137106a6af /modules/bsrgan_model.py | |
parent | 8deae077004f0332ca607fc3a5d568b1a4705bec (diff) | |
parent | 5f561ee95dcb09d92ea67bab5561dced93fe3d00 (diff) | |
download | stable-diffusion-webui-gfx803-5d26ba2b4b84b64d82150ae70495f928b3b0b116.tar.gz stable-diffusion-webui-gfx803-5d26ba2b4b84b64d82150ae70495f928b3b0b116.tar.bz2 stable-diffusion-webui-gfx803-5d26ba2b4b84b64d82150ae70495f928b3b0b116.zip |
Merge branch 'master' into ScuNET
Diffstat (limited to 'modules/bsrgan_model.py')
-rw-r--r-- | modules/bsrgan_model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bsrgan_model.py b/modules/bsrgan_model.py index 47346f31..e62c6657 100644 --- a/modules/bsrgan_model.py +++ b/modules/bsrgan_model.py @@ -69,7 +69,7 @@ class UpscalerBSRGAN(modules.upscaler.Upscaler): if not os.path.exists(filename) or filename is None: print(f"BSRGAN: Unable to load model from {filename}", file=sys.stderr) return None - model = RRDBNet(in_nc=3, out_nc=3, nf=64, nb=23, gc=32, sf=2) # define network + model = RRDBNet(in_nc=3, out_nc=3, nf=64, nb=23, gc=32, sf=4) # define network model.load_state_dict(torch.load(filename), strict=True) model.eval() for k, v in model.named_parameters(): |