Skip to content

Commit cb65301

Browse files
committed
review
1 parent 699adfa commit cb65301

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/source/en/using-diffusers/callback.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you want to add a new official callback, feel free to open a [feature request
5959
Early stopping is useful if you aren't happy with the intermediate results during generation. This callback sets a hardcoded stop point after which the pipeline terminates by setting the `_interrupt` attribute to `True`.
6060

6161
```py
62-
from diffusers import StableDiffusionPipeline
62+
from diffusers import StableDiffusionXLPipeline
6363

6464
def interrupt_callback(pipeline, i, t, callback_kwargs):
6565
stop_idx = 10
@@ -68,7 +68,9 @@ def interrupt_callback(pipeline, i, t, callback_kwargs):
6868

6969
return callback_kwargs
7070

71-
pipeline = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5")
71+
pipeline = StableDiffusionXLPipeline.from_pretrained(
72+
"stable-diffusion-v1-5/stable-diffusion-v1-5"
73+
)
7274
num_inference_steps = 50
7375

7476
pipeline(

0 commit comments

Comments
 (0)