patrickvonplaten commited on
Commit
1bbccd9
2 Parent(s): 330a5dc c9de2e1

Merge branch 'main' of https://huggingface.co/fusing/ddpm_dummy

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.ones((batch_size, num_channels, height, width))
13
+ time_step = torch.tensor([10])
14
+
15
+ image = model(dummy_noise, time_step)
16
+ ```