"docs/vscode:/vscode.git/clone" did not exist on "aaee8ff1f75941dd2be82a180826a052965ce84c"
Unverified Commit d0b8de12 authored by VV-A-VV's avatar VV-A-VV Committed by GitHub
Browse files

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

delete the duplicated code from the controlnet-img-2-img pipelines
parent b9058754
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment