From 7c05b975b79df39875959494020e4b5eedd2c4c8 Mon Sep 17 00:00:00 2001 From: Celestial Phineas <17267055+celestialphineas@users.noreply.github.com> Date: Sun, 24 Dec 2023 17:02:24 +0800 Subject: [PATCH] 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. --- src/diffusers/pipelines/controlnet/pipeline_controlnet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diffusers/pipelines/controlnet/pipeline_controlnet.py b/src/diffusers/pipelines/controlnet/pipeline_controlnet.py index d7168bec82..6bdc281ef8 100644 --- a/src/diffusers/pipelines/controlnet/pipeline_controlnet.py +++ b/src/diffusers/pipelines/controlnet/pipeline_controlnet.py @@ -633,7 +633,7 @@ class StableDiffusionControlNetPipeline( # When `image` is a nested list: # (e.g. [[canny_image_1, pose_image_1], [canny_image_2, pose_image_2]]) elif any(isinstance(i, list) for i in image): - raise ValueError("A single batch of multiple conditionings are supported at the moment.") + raise ValueError("A single batch of multiple conditionings is not supported at the moment.") elif len(image) != len(self.controlnet.nets): raise ValueError( 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 @@ class StableDiffusionControlNetPipeline( ): if isinstance(controlnet_conditioning_scale, list): if any(isinstance(i, list) for i in controlnet_conditioning_scale): - raise ValueError("A single batch of multiple conditionings are supported at the moment.") + raise ValueError("A single batch of multiple conditionings is not supported at the moment.") elif isinstance(controlnet_conditioning_scale, list) and len(controlnet_conditioning_scale) != len( self.controlnet.nets ):