You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("Expected `controlnet` to be of type `ControlNetUnionModel`.")
254
253
255
-
ifisinstance(controlnet, (list, tuple)):
256
-
controlnet=MultiControlNetModel(controlnet)
257
-
258
254
self.register_modules(
259
255
vae=vae,
260
256
text_encoder=text_encoder,
@@ -754,15 +750,6 @@ def check_inputs(
754
750
"If `negative_prompt_embeds` are provided, `negative_pooled_prompt_embeds` also have to be passed. Make sure to generate `negative_pooled_prompt_embeds` from the same text encoder that was used to generate `negative_prompt_embeds`."
755
751
)
756
752
757
-
# `prompt` needs more sophisticated handling when there are multiple
raiseValueError("A single batch of multiple conditionings are supported at the moment.")
794
-
eliflen(image) !=len(self.controlnet.nets):
795
-
raiseValueError(
796
-
f"For multiple controlnets: `image` must have the same length as the number of controlnets, but got {len(image)} images and {len(self.controlnet.nets)} ControlNets."
"For multiple controlnets: When `controlnet_conditioning_scale` is specified as `list`, it must have"
834
-
" the same length as the number of controlnets"
835
-
)
836
790
else:
837
791
assertFalse
838
792
@@ -847,12 +801,6 @@ def check_inputs(
847
801
f"`control_guidance_start` has {len(control_guidance_start)} elements, but `control_guidance_end` has {len(control_guidance_end)} elements. Make sure to provide the same number of elements to each list."
f"`control_guidance_start`: {control_guidance_start} has {len(control_guidance_start)} elements but there are {len(self.controlnet.nets)} controlnets available. Make sure to provide {len(self.controlnet.nets)}."
raiseValueError("Expected `controlnet` to be of type `ControlNetUnionModel`.")
266
263
267
-
ifisinstance(controlnet, (list, tuple)):
268
-
controlnet=MultiControlNetModel(controlnet)
269
-
270
264
self.register_modules(
271
265
vae=vae,
272
266
text_encoder=text_encoder,
@@ -697,15 +691,6 @@ def check_inputs(
697
691
"If `negative_prompt_embeds` are provided, `negative_pooled_prompt_embeds` also have to be passed. Make sure to generate `negative_pooled_prompt_embeds` from the same text encoder that was used to generate `negative_prompt_embeds`."
698
692
)
699
693
700
-
# `prompt` needs more sophisticated handling when there are multiple
raiseValueError("A single batch of multiple conditionings are supported at the moment.")
737
-
eliflen(image) !=len(self.controlnet.nets):
738
-
raiseValueError(
739
-
f"For multiple controlnets: `image` must have the same length as the number of controlnets, but got {len(image)} images and {len(self.controlnet.nets)} ControlNets."
"For multiple controlnets: When `controlnet_conditioning_scale` is specified as `list`, it must have"
777
-
" the same length as the number of controlnets"
778
-
)
779
731
else:
780
732
assertFalse
781
733
@@ -790,12 +742,6 @@ def check_inputs(
790
742
f"`control_guidance_start` has {len(control_guidance_start)} elements, but `control_guidance_end` has {len(control_guidance_end)} elements. Make sure to provide the same number of elements to each list."
f"`control_guidance_start`: {control_guidance_start} has {len(control_guidance_start)} elements but there are {len(self.controlnet.nets)} controlnets available. Make sure to provide {len(self.controlnet.nets)}."
raiseValueError("Expected `controlnet` to be of type `ControlNetUnionModel`.")
258
255
259
-
ifisinstance(controlnet, (list, tuple)):
260
-
controlnet=MultiControlNetModel(controlnet)
261
-
262
256
self.register_modules(
263
257
vae=vae,
264
258
text_encoder=text_encoder,
@@ -702,15 +696,6 @@ def check_inputs(
702
696
"If `negative_prompt_embeds` are provided, `negative_pooled_prompt_embeds` also have to be passed. Make sure to generate `negative_pooled_prompt_embeds` from the same text encoder that was used to generate `negative_prompt_embeds`."
703
697
)
704
698
705
-
# `prompt` needs more sophisticated handling when there are multiple
raiseValueError("A single batch of multiple conditionings are supported at the moment.")
742
-
eliflen(image) !=len(self.controlnet.nets):
743
-
raiseValueError(
744
-
f"For multiple controlnets: `image` must have the same length as the number of controlnets, but got {len(image)} images and {len(self.controlnet.nets)} ControlNets."
"For multiple controlnets: When `controlnet_conditioning_scale` is specified as `list`, it must have"
782
-
" the same length as the number of controlnets"
783
-
)
784
735
else:
785
736
assertFalse
786
737
@@ -795,12 +746,6 @@ def check_inputs(
795
746
f"`control_guidance_start` has {len(control_guidance_start)} elements, but `control_guidance_end` has {len(control_guidance_end)} elements. Make sure to provide the same number of elements to each list."
f"`control_guidance_start`: {control_guidance_start} has {len(control_guidance_start)} elements but there are {len(self.controlnet.nets)} controlnets available. Make sure to provide {len(self.controlnet.nets)}."
0 commit comments