diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-30 21:43:41 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-30 21:43:41 +0000 |
commit | 3be90740316f8fbb950b31d440458a5e8ed4beb3 (patch) | |
tree | 0d088773292cacdbaa49ac180a376bf63bccf94f /modules | |
parent | 8100e901ab0c5b04d289eebb722c8a653b8beef1 (diff) | |
download | stable-diffusion-webui-gfx803-3be90740316f8fbb950b31d440458a5e8ed4beb3.tar.gz stable-diffusion-webui-gfx803-3be90740316f8fbb950b31d440458a5e8ed4beb3.tar.bz2 stable-diffusion-webui-gfx803-3be90740316f8fbb950b31d440458a5e8ed4beb3.zip |
fix for the previous fix.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/upscaler_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upscaler_utils.py b/modules/upscaler_utils.py index 39f78a0b..dde5d7ad 100644 --- a/modules/upscaler_utils.py +++ b/modules/upscaler_utils.py @@ -17,7 +17,7 @@ def upscale_without_tiling(model, img: Image.Image): img = np.ascontiguousarray(np.transpose(img, (2, 0, 1))) / 255 img = torch.from_numpy(img).float() - model_weight = next(iter(model.parameters())) + model_weight = next(iter(model.model.parameters())) img = img.unsqueeze(0).to(device=model_weight.device, dtype=model_weight.dtype) with torch.no_grad(): |