mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
Use non-human subject in StableDiffusion3ControlNetPipeline example (#10214)
* Use non-human subject in StableDiffusion3ControlNetPipeline example * make style
This commit is contained in:
@@ -66,9 +66,13 @@ EXAMPLE_DOC_STRING = """
|
||||
... "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")
|
||||
```
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user