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

Delete the duplicate code for the contolnet img 2 img (#4411)

delete the duplicated code from the controlnet-img-2-img pipelines
This commit is contained in:
VV-A-VV
2023-08-03 20:32:03 +02:00
committed by GitHub
parent b9058754c5
commit d0b8de1262

View File

@@ -921,8 +921,6 @@ class StableDiffusionControlNetImg2ImgPipeline(
# corresponds to doing no classifier free guidance.
do_classifier_free_guidance = guidance_scale > 1.0
controlnet = self.controlnet._orig_mod if is_compiled_module(self.controlnet) else self.controlnet
if isinstance(controlnet, MultiControlNetModel) and isinstance(controlnet_conditioning_scale, float):
controlnet_conditioning_scale = [controlnet_conditioning_scale] * len(controlnet.nets)