Unverified Commit 01686679 authored by TimothyAlexisVass's avatar TimothyAlexisVass Committed by GitHub
Browse files

Minor fixes (#5309)

tiny fixes
parent f0a2c637
...@@ -112,7 +112,7 @@ As you can see, this is already more complex than the DDPM pipeline which only c ...@@ -112,7 +112,7 @@ As you can see, this is already more complex than the DDPM pipeline which only c
<Tip> <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> </Tip>
...@@ -214,7 +214,7 @@ Next, generate some initial random noise as a starting point for the diffusion p ...@@ -214,7 +214,7 @@ Next, generate some initial random noise as a starting point for the diffusion p
```py ```py
>>> latents = torch.randn( >>> latents = torch.randn(
... (batch_size, unet.in_channels, height // 8, width // 8), ... (batch_size, unet.config.in_channels, height // 8, width // 8),
... generator=generator, ... generator=generator,
... ) ... )
>>> latents = latents.to(torch_device) >>> latents = latents.to(torch_device)
......
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