tell RealESRGANer which device to run on, could be cuda, M1, or other GPU
This commit is contained in:
parent
68f336bd99
commit
f29b4cd7cb
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue