1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Correct order height & width in pipeline_paint_by_example.py (#1589)

Update pipeline_paint_by_example.py
This commit is contained in:
Fantasy-Studio
2022-12-07 20:40:56 +08:00
committed by GitHub
parent bb2d7cacc0
commit d9b5b43d46

View File

@@ -457,7 +457,7 @@ class PaintByExamplePipeline(DiffusionPipeline):
# 2. Preprocess mask and image
mask, masked_image = prepare_mask_and_masked_image(image, mask_image)
width, height = masked_image.shape[-2:]
height, width = masked_image.shape[-2:]
# 3. Check inputs
self.check_inputs(example_image, height, width, callback_steps)