Skip to content

Commit 3e8d3d8

Browse files
csaybardg845
authored andcommitted
Update write_own_pipeline.mdx (huggingface#3323)
1 parent 7929587 commit 3e8d3d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/en/using-diffusers/write_own_pipeline.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ To recreate the pipeline with the model and scheduler separately, let's write ou
8282
>>> for t in scheduler.timesteps:
8383
... with torch.no_grad():
8484
... noisy_residual = model(input, t).sample
85-
>>> previous_noisy_sample = scheduler.step(noisy_residual, t, input).prev_sample
86-
>>> input = previous_noisy_sample
85+
... previous_noisy_sample = scheduler.step(noisy_residual, t, input).prev_sample
86+
... input = previous_noisy_sample
8787
```
8888

8989
This is the entire denoising process, and you can use this same pattern to write any diffusion system.
@@ -287,4 +287,4 @@ This is really what 🧨 Diffusers is designed for: to make it intuitive and eas
287287
For your next steps, feel free to:
288288

289289
* Learn how to [build and contribute a pipeline](using-diffusers/#contribute_pipeline) to 🧨 Diffusers. We can't wait and see what you'll come up with!
290-
* Explore [existing pipelines](./api/pipelines/overview) in the library, and see if you can deconstruct and build a pipeline from scratch using the models and schedulers separately.
290+
* Explore [existing pipelines](./api/pipelines/overview) in the library, and see if you can deconstruct and build a pipeline from scratch using the models and schedulers separately.

0 commit comments

Comments
 (0)