Merge pull request #12737 from yajunzhng/master

tell RealESRGANer which device to run on, could be cuda, M1, or other…
This commit is contained in:
AUTOMATIC1111 2023-08-23 12:30:17 +03:00 committed by GitHub
commit bae91855f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]