Merge branch 'dev' into RUF013

This commit is contained in:
awsr
2026-03-24 07:12:51 -07:00
committed by GitHub
66 changed files with 3643 additions and 3019 deletions
+2
View File
@@ -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