未验证 提交 bae91855 编写于 作者: A AUTOMATIC1111 提交者: GitHub

Merge pull request #12737 from yajunzhng/master

tell RealESRGANer which device to run on, could be cuda, M1, or other…
......@@ -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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册