mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Merge branch 'dev' into RUF013
This commit is contained in:
@@ -176,6 +176,8 @@ class UpscalerESRGAN(Upscaler):
|
||||
|
||||
|
||||
def upscale_without_tiling(model, img):
|
||||
if img.mode != 'RGB':
|
||||
img = img.convert('RGB')
|
||||
img = np.array(img)
|
||||
img = img[:, :, ::-1]
|
||||
img = np.ascontiguousarray(np.transpose(img, (2, 0, 1))) / 255
|
||||
|
||||
Reference in New Issue
Block a user