patrickvonplaten
commited on
Commit
•
9d0c1f2
1
Parent(s):
be5dd93
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dummy diffusion model following architecture of https://github.com/lucidrains/denoising-diffusion-pytorch
|
2 |
+
|
3 |
+
Run the model as follows:
|
4 |
+
|
5 |
+
```python
|
6 |
+
from diffusers import UNetModel
|
7 |
+
import torch
|
8 |
+
|
9 |
+
model = UNetModel.from_pretrained("fusing/ddpm_dummy")
|
10 |
+
|
11 |
+
batch_size, num_channels, height, width = 1, 3, 32, 32
|
12 |
+
dummy_noise = torch.tensor((batch_size, num_channels, height, width))
|
13 |
+
|
14 |
+
image = model(dummy_noise)
|
15 |
+
```
|