From 32a4bbcd6412e8ee85816cdd7d1a66d11982376c Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Wed, 15 Feb 2023 17:49:42 -0600 Subject: [PATCH] fix(api): remove alpha channel after blending but before upscaling (fixes #148) --- api/onnx_web/diffusion/run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/onnx_web/diffusion/run.py b/api/onnx_web/diffusion/run.py index 8cac1c65..f1436c96 100644 --- a/api/onnx_web/diffusion/run.py +++ b/api/onnx_web/diffusion/run.py @@ -253,6 +253,7 @@ def run_blend_pipeline( mask=mask, callback=progress, ) + image = image.convert("RGB") image = run_upscale_correction( job, server, stage, params, image, upscale=upscale, callback=progress