aboutsummaryrefslogtreecommitdiff
path: root/modules/realesrgan_model.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-23 12:30:17 +0300
committerGitHub <noreply@github.com>2023-08-23 12:30:17 +0300
commitbae91855f5270894b21575147e3855c1584fb4d4 (patch)
treef91a79585f5793042f10e1065a8d78c45b6e5aab /modules/realesrgan_model.py
parent0232a987bb8cbf337a5b34f38f7718aef92af269 (diff)
parentf29b4cd7cb4d59c8e4dcac1cebb63bfb5b884395 (diff)
Merge pull request #12737 from yajunzhng/master
tell RealESRGANer which device to run on, could be cuda, M1, or other…
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]