aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-23 09:30:17 +0000
committerGitHub <noreply@github.com>2023-08-23 09:30:17 +0000
commitbae91855f5270894b21575147e3855c1584fb4d4 (patch)
treef91a79585f5793042f10e1065a8d78c45b6e5aab
parent0232a987bb8cbf337a5b34f38f7718aef92af269 (diff)
parentf29b4cd7cb4d59c8e4dcac1cebb63bfb5b884395 (diff)
downloadstable-diffusion-webui-gfx803-bae91855f5270894b21575147e3855c1584fb4d4.tar.gz
stable-diffusion-webui-gfx803-bae91855f5270894b21575147e3855c1584fb4d4.tar.bz2
stable-diffusion-webui-gfx803-bae91855f5270894b21575147e3855c1584fb4d4.zip
Merge pull request #12737 from yajunzhng/master
tell RealESRGANer which device to run on, could be cuda, M1, or other…
-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]