1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

Fix breaking change in pipeline_stable_diffusion_controlnet.py (#3118)

fix breaking change
This commit is contained in:
Tommaso De Rossi
2023-04-16 19:04:11 +02:00
committed by Daniel Gu
parent a256f8446d
commit e9cb03edf0

View File

@@ -637,8 +637,8 @@ class StableDiffusionControlNetPipeline(DiffusionPipeline, TextualInversionLoade
num_images_per_prompt,
device,
dtype,
do_classifier_free_guidance,
guess_mode,
do_classifier_free_guidance=False,
guess_mode=False,
):
if not isinstance(image, torch.Tensor):
if isinstance(image, PIL.Image.Image):