From b32555a2da735c74eb199025a170b2ac454135fd Mon Sep 17 00:00:00 2001 From: hysts Date: Fri, 22 Sep 2023 17:38:17 +0900 Subject: [PATCH] [docs] Add missing parenthesis in the sample code of BLIP Diffusion (#5144) Add missing parenthesis in the sample code of BLIP Diffusion --- .../pipelines/controlnet/pipeline_controlnet_blip_diffusion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py b/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py index 1a7efa3212bd..4d0eb142e840 100644 --- a/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py +++ b/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py @@ -51,7 +51,7 @@ >>> cldm_cond_image = load_image( ... "https://huggingface.co/datasets/ayushtues/blipdiffusion_images/resolve/main/kettle.jpg" - ... ).resize(512, 512) + ... ).resize((512, 512)) >>> canny = CannyDetector() >>> cldm_cond_image = canny(cldm_cond_image, 30, 70, output_type="pil") >>> style_image = load_image(