Skip to content

Commit

Permalink
Use non-human subject in StableDiffusion3ControlNetPipeline example (#…
Browse files Browse the repository at this point in the history
…10214)

* Use non-human subject in StableDiffusion3ControlNetPipeline example

* make style
  • Loading branch information
hlky authored Dec 16, 2024
1 parent 87e8157 commit 438bd60
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -66,9 +66,13 @@
... "stabilityai/stable-diffusion-3-medium-diffusers", controlnet=controlnet, torch_dtype=torch.float16
... )
>>> pipe.to("cuda")
>>> control_image = load_image("https://huggingface.co/InstantX/SD3-Controlnet-Canny/resolve/main/canny.jpg")
>>> prompt = "A girl holding a sign that says InstantX"
>>> image = pipe(prompt, control_image=control_image, controlnet_conditioning_scale=0.7).images[0]
>>> control_image = load_image(
... "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/bird_canny.png"
... )
>>> prompt = "A bird in space"
>>> image = pipe(
... prompt, control_image=control_image, height=1024, width=768, controlnet_conditioning_scale=0.7
... ).images[0]
>>> image.save("sd3.png")
```
"""

0 comments on commit 438bd60

Please sign in to comment.