From d9b5b43d464262e155b2792628bc91cc69b6984b Mon Sep 17 00:00:00 2001 From: Fantasy-Studio <118900063+Fantasy-Studio@users.noreply.github.com> Date: Wed, 7 Dec 2022 20:40:56 +0800 Subject: [PATCH] Correct order height & width in pipeline_paint_by_example.py (#1589) Update pipeline_paint_by_example.py --- .../pipelines/paint_by_example/pipeline_paint_by_example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py b/src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py index 83f10f8293..18d024a749 100644 --- a/src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py +++ b/src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py @@ -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)