From b3ac0bd7d18f19b629b19926ec3bb9208bb18cec Mon Sep 17 00:00:00 2001 From: Bingsu Date: Wed, 11 Oct 2023 21:15:03 +0900 Subject: [PATCH] fix: control image size --- asdff/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/asdff/base.py b/asdff/base.py index 6f9b89b..19e8fb7 100644 --- a/asdff/base.py +++ b/asdff/base.py @@ -166,4 +166,9 @@ def process_inpainting( inpaint_args = self._get_inpaint_args(common, inpaint_only) inpaint_args["image"] = crop_image inpaint_args["mask_image"] = crop_mask + + if "control_image" in inpaint_args: + inpaint_args["control_image"] = inpaint_args["control_image"].resize( + crop_image.size + ) return self.inpaint_pipeline(**inpaint_args)