Skip to content

Commit

Permalink
fix: control image size
Browse files Browse the repository at this point in the history
  • Loading branch information
Bing-su committed Oct 11, 2023
1 parent 376591b commit b3ac0bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions asdff/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit b3ac0bd

Please sign in to comment.