diffusers
8511e800 - Fix `Flux2ImageProcessor.apply_overlay` with `padding_mask_crop` (#15186)

Commit
1 day ago
Fix `Flux2ImageProcessor.apply_overlay` with `padding_mask_crop` (#15186) * Fix Flux2ImageProcessor.apply_overlay with padding_mask_crop Flux2ImageProcessor overrides _resize_and_crop to only center crop, but VaeImageProcessor.apply_overlay fits the generated image into the crop region with resize_mode="crop", which goes through that override. Resize the image to the crop region with the parent _resize_and_crop first, so the inpainted result is pasted at the right scale. Reference image preprocessing is unchanged. Add processor tests and a Flux2KleinInpaintPipeline test with padding_mask_crop that compare the result with VaeImageProcessor.apply_overlay. They fail without this change. * Remove the Flux2ImageProcessor unit tests The Klein inpaint pipeline test covers the padding_mask_crop fix.
Author
Parents
Loading