Unverified Commit 438bd605 authored by hlky's avatar hlky Committed by GitHub
Browse files

Use non-human subject in StableDiffusion3ControlNetPipeline example (#10214)

* Use non-human subject in StableDiffusion3ControlNetPipeline example

* make style
parent 87e81574
...@@ -66,9 +66,13 @@ EXAMPLE_DOC_STRING = """ ...@@ -66,9 +66,13 @@ EXAMPLE_DOC_STRING = """
... "stabilityai/stable-diffusion-3-medium-diffusers", controlnet=controlnet, torch_dtype=torch.float16 ... "stabilityai/stable-diffusion-3-medium-diffusers", controlnet=controlnet, torch_dtype=torch.float16
... ) ... )
>>> pipe.to("cuda") >>> pipe.to("cuda")
>>> control_image = load_image("https://huggingface.co/InstantX/SD3-Controlnet-Canny/resolve/main/canny.jpg") >>> control_image = load_image(
>>> prompt = "A girl holding a sign that says InstantX" ... "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/bird_canny.png"
>>> image = pipe(prompt, control_image=control_image, controlnet_conditioning_scale=0.7).images[0] ... )
>>> 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") >>> image.save("sd3.png")
``` ```
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment