From c2963c4a35a7f3487398f19be03b77a8c6c97364 Mon Sep 17 00:00:00 2001 From: chflame Date: Tue, 14 May 2024 14:11:20 +0800 Subject: [PATCH] fix bug of AutoAdjust --- py/imagefunc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/imagefunc.py b/py/imagefunc.py index 13fad82..9c275be 100644 --- a/py/imagefunc.py +++ b/py/imagefunc.py @@ -375,7 +375,7 @@ def chop_image_v2(background_image:Image, layer_image:Image, blend_mode:str, opa # final_tensor = (torch.from_numpy(blended_np / 255)).unsqueeze(0) # return tensor2pil(_tensor) - return Image.fromarray(np.uint8(blended_np)) + return Image.fromarray(np.uint8(blended_np)).convert('RGB') def remove_background(image:Image, mask:Image, color:str) -> Image: width = image.width