Skip to content

Commit eeb7003

Browse files
authored
Syntax error in readme example "pipe" -> "pipeline" (#8601)
Update controlnet.md Syntax error pipe -> pipeline
1 parent c4a4750 commit eeb7003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/en/training/controlnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ control_image = load_image("./conditioning_image_1.png")
349349
prompt = "pale golden rod circle with old lace background"
350350

351351
generator = torch.manual_seed(0)
352-
image = pipe(prompt, num_inference_steps=20, generator=generator, image=control_image).images[0]
352+
image = pipeline(prompt, num_inference_steps=20, generator=generator, image=control_image).images[0]
353353
image.save("./output.png")
354354
```
355355

@@ -363,4 +363,4 @@ The SDXL training script is discussed in more detail in the [SDXL training](sdxl
363363

364364
Congratulations on training your own ControlNet! To learn more about how to use your new model, the following guides may be helpful:
365365

366-
- Learn how to [use a ControlNet](../using-diffusers/controlnet) for inference on a variety of tasks.
366+
- Learn how to [use a ControlNet](../using-diffusers/controlnet) for inference on a variety of tasks.

0 commit comments

Comments
 (0)