diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-31 19:38:30 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-31 19:38:30 +0000 |
commit | a70dfb64a86b9b6d869deffdb0ffebe980365473 (patch) | |
tree | b43d1ca1076fb449d7b08fa2403705a95f69f0b0 /modules/upscaler_utils.py | |
parent | be5f1acc8f6e5bfc7f8234fd570d663b2fde9c27 (diff) | |
download | stable-diffusion-webui-gfx803-a70dfb64a86b9b6d869deffdb0ffebe980365473.tar.gz stable-diffusion-webui-gfx803-a70dfb64a86b9b6d869deffdb0ffebe980365473.tar.bz2 stable-diffusion-webui-gfx803-a70dfb64a86b9b6d869deffdb0ffebe980365473.zip |
change import statements for #14478
Diffstat (limited to 'modules/upscaler_utils.py')
-rw-r--r-- | modules/upscaler_utils.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/upscaler_utils.py b/modules/upscaler_utils.py index c60e3beb..f5cb92d5 100644 --- a/modules/upscaler_utils.py +++ b/modules/upscaler_utils.py @@ -6,8 +6,7 @@ import torch import tqdm from PIL import Image -from modules import images, shared -from modules.torch_utils import get_param +from modules import images, shared, torch_utils logger = logging.getLogger(__name__) @@ -18,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() - param = get_param(model) + param = torch_utils.get_param(model) img = img.unsqueeze(0).to(device=param.device, dtype=param.dtype) with torch.no_grad(): |