Skip to content

Commit a8c50ba

Browse files
committed
fix-copies
1 parent 5fd9fda commit a8c50ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/diffusers/pipelines/flux/pipeline_flux_control.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,9 @@ def prepare_image(
573573
do_classifier_free_guidance=False,
574574
guess_mode=False,
575575
):
576-
if not isinstance(image, torch.Tensor):
576+
if isinstance(image, torch.Tensor):
577+
pass
578+
else:
577579
image = self.image_processor.preprocess(image, height=height, width=width)
578580

579581
image_batch_size = image.shape[0]

0 commit comments

Comments
 (0)