From b5eeb44c62b2db3801b607094992ce699e5297ec Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Wed, 15 Feb 2023 17:45:25 -0600 Subject: [PATCH] fix(api): remove inpaint post-multiply (#150) --- api/logging.yaml | 6 +++--- api/onnx_web/diffusion/run.py | 7 +------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/api/logging.yaml b/api/logging.yaml index 24bd3c29..0bf54310 100644 --- a/api/logging.yaml +++ b/api/logging.yaml @@ -5,14 +5,14 @@ formatters: handlers: console: class: logging.StreamHandler - level: DEBUG + level: INFO formatter: simple stream: ext://sys.stdout loggers: '': - level: DEBUG + level: INFO handlers: [console] propagate: True root: - level: DEBUG + level: INFO handlers: [console] diff --git a/api/onnx_web/diffusion/run.py b/api/onnx_web/diffusion/run.py index 4785a23e..8cac1c65 100644 --- a/api/onnx_web/diffusion/run.py +++ b/api/onnx_web/diffusion/run.py @@ -177,6 +177,7 @@ def run_inpaint_pipeline( # calling the upscale_outpaint stage directly needs accumulating progress progress = ChainProgress.from_progress(progress) + logger.debug("applying mask filter and generating noise source") image = upscale_outpaint( job, server, @@ -190,12 +191,6 @@ def run_inpaint_pipeline( noise_source=noise_source, callback=progress, ) - logger.info("applying mask filter and generating noise source") - - if image.size == source_image.size: - image = ImageChops.blend(source_image, image, strength) - else: - logger.info("output image size does not match source, skipping post-blend") image = run_upscale_correction( job, server, stage, params, image, upscale=upscale, callback=progress