We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa0aa4 commit 24c7d57Copy full SHA for 24c7d57
src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py
@@ -903,9 +903,12 @@ def __call__(
903
904
timestep = t.expand(latents.shape[0]).to(latents.dtype)
905
906
- guidance = (
907
- torch.tensor([guidance_scale], device=device) if self.controlnet.config.guidance_embeds else None
908
- )
+ if isinstance(self.controlnet, FluxMultiControlNetModel):
+ use_guidance = self.controlnet.nets[0].config.guidance_embeds
+ else:
909
+ use_guidance = self.controlnet.config.guidance_embeds
910
+
911
+ guidance = torch.tensor([guidance_scale], device=device) if use_guidance else None
912
guidance = guidance.expand(latents.shape[0]) if guidance is not None else None
913
914
if isinstance(controlnet_keep[i], list):
0 commit comments