Skip to content

Commit 7c05b97

Browse files
Fix typos in the ValueError for a nested image list as StableDiffusionControlNetPipeline input. (#6286)
Fixed typos in the `ValueError` for a nested image list as input.
1 parent fe574c8 commit 7c05b97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/pipelines/controlnet/pipeline_controlnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def check_inputs(
633633
# When `image` is a nested list:
634634
# (e.g. [[canny_image_1, pose_image_1], [canny_image_2, pose_image_2]])
635635
elif any(isinstance(i, list) for i in image):
636-
raise ValueError("A single batch of multiple conditionings are supported at the moment.")
636+
raise ValueError("A single batch of multiple conditionings is not supported at the moment.")
637637
elif len(image) != len(self.controlnet.nets):
638638
raise ValueError(
639639
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."
@@ -659,7 +659,7 @@ def check_inputs(
659659
):
660660
if isinstance(controlnet_conditioning_scale, list):
661661
if any(isinstance(i, list) for i in controlnet_conditioning_scale):
662-
raise ValueError("A single batch of multiple conditionings are supported at the moment.")
662+
raise ValueError("A single batch of multiple conditionings is not supported at the moment.")
663663
elif isinstance(controlnet_conditioning_scale, list) and len(controlnet_conditioning_scale) != len(
664664
self.controlnet.nets
665665
):

0 commit comments

Comments
 (0)