Update README.md
Browse files
README.md
CHANGED
|
@@ -13,11 +13,16 @@ Here is Class Conditional Diffusion Pipeline and Sampling.
|
|
| 13 |
<img src="grid_images.gif" alt="Class Conditioned Diffusion GIF">
|
| 14 |
</div>
|
| 15 |
|
| 16 |
-
|
| 17 |
```bash
|
| 18 |
!pip install git+https://github.com/huggingface/diffusers
|
| 19 |
```
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
```bash
|
| 22 |
from diffusers import UNet2DModel, DDPMScheduler
|
| 23 |
from diffusers.utils.torch_utils import randn_tensor
|
|
|
|
| 13 |
<img src="grid_images.gif" alt="Class Conditioned Diffusion GIF">
|
| 14 |
</div>
|
| 15 |
|
| 16 |
+
Firstly install Diffusers
|
| 17 |
```bash
|
| 18 |
!pip install git+https://github.com/huggingface/diffusers
|
| 19 |
```
|
| 20 |
+
Then login to your huggingface account.
|
| 21 |
+
```bash
|
| 22 |
+
from huggingface_hub import notebook_login
|
| 23 |
+
notebook_login()
|
| 24 |
+
```
|
| 25 |
+
Finally for sampling and model testing. Run these lines of code.
|
| 26 |
```bash
|
| 27 |
from diffusers import UNet2DModel, DDPMScheduler
|
| 28 |
from diffusers.utils.torch_utils import randn_tensor
|