Skip to content

Commit b361ad9

Browse files
hlkysayakpaul
authored andcommitted
Use non-human subject in StableDiffusion3ControlNetPipeline example (#10214)
* Use non-human subject in StableDiffusion3ControlNetPipeline example * make style
1 parent 5c75e82 commit b361ad9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,13 @@
6666
... "stabilityai/stable-diffusion-3-medium-diffusers", controlnet=controlnet, torch_dtype=torch.float16
6767
... )
6868
>>> pipe.to("cuda")
69-
>>> control_image = load_image("https://huggingface.co/InstantX/SD3-Controlnet-Canny/resolve/main/canny.jpg")
70-
>>> prompt = "A girl holding a sign that says InstantX"
71-
>>> image = pipe(prompt, control_image=control_image, controlnet_conditioning_scale=0.7).images[0]
69+
>>> control_image = load_image(
70+
... "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/bird_canny.png"
71+
... )
72+
>>> prompt = "A bird in space"
73+
>>> image = pipe(
74+
... prompt, control_image=control_image, height=1024, width=768, controlnet_conditioning_scale=0.7
75+
... ).images[0]
7276
>>> image.save("sd3.png")
7377
```
7478
"""

0 commit comments

Comments
 (0)