Skip to content

Commit

Permalink
Minor fixes (huggingface#5309)
Browse files Browse the repository at this point in the history
tiny fixes
  • Loading branch information
TimothyAlexisVass authored and Jimmy committed Apr 26, 2024
1 parent 5c28ca3 commit 20ab4b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/en/using-diffusers/write_own_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ As you can see, this is already more complex than the DDPM pipeline which only c

<Tip>

💡 Read the [How does Stable Diffusion work?](https://huggingface.co/blog/stable_diffusion#how-does-stable-diffusion-work) blog for more details about how the VAE, UNet, and text encoder models.
💡 Read the [How does Stable Diffusion work?](https://huggingface.co/blog/stable_diffusion#how-does-stable-diffusion-work) blog for more details about how the VAE, UNet, and text encoder models work.

</Tip>

Expand Down Expand Up @@ -214,7 +214,7 @@ Next, generate some initial random noise as a starting point for the diffusion p

```py
>>> latents = torch.randn(
... (batch_size, unet.in_channels, height // 8, width // 8),
... (batch_size, unet.config.in_channels, height // 8, width // 8),
... generator=generator,
... )
>>> latents = latents.to(torch_device)
Expand Down

0 comments on commit 20ab4b0

Please sign in to comment.