aboutsummaryrefslogtreecommitdiffstats
path: root/modules/realesrgan_model.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-24 08:09:04 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-24 08:09:04 +0000
commit189229bbf9276fb73e48c783856b02fc57ab5c9b (patch)
tree728b1ab97fec6d18a1ec687ba552ca83b0dcf109 /modules/realesrgan_model.py
parent31f2be3dcedf85c036c5f784c640208d122b62ed (diff)
parentb6c02174050b2c5dd98bf24c797e85ff269516f5 (diff)
downloadstable-diffusion-webui-gfx803-189229bbf9276fb73e48c783856b02fc57ab5c9b.tar.gz
stable-diffusion-webui-gfx803-189229bbf9276fb73e48c783856b02fc57ab5c9b.tar.bz2
stable-diffusion-webui-gfx803-189229bbf9276fb73e48c783856b02fc57ab5c9b.zip
Merge branch 'dev' into release_candidate
Diffstat (limited to 'modules/realesrgan_model.py')
-rw-r--r--modules/realesrgan_model.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/realesrgan_model.py b/modules/realesrgan_model.py
index 0700b853..02841c30 100644
--- a/modules/realesrgan_model.py
+++ b/modules/realesrgan_model.py
@@ -55,6 +55,7 @@ class UpscalerRealESRGAN(Upscaler):
half=not cmd_opts.no_half and not cmd_opts.upcast_sampling,
tile=opts.ESRGAN_tile,
tile_pad=opts.ESRGAN_tile_overlap,
+ device=self.device,
)
upsampled = upsampler.enhance(np.array(img), outscale=info.scale)[0]