Mou commited on
Commit
6c1ece3
·
unverified ·
1 Parent(s): f01b6a8

[FIX] reconstruct files structure & update readme

Browse files
README.md CHANGED
@@ -33,26 +33,29 @@ This repository contains a **denoising diffusion probabilistic model (DDPM)** tr
33
 
34
  Here are some sample images generated by the model at different diffusion steps:
35
 
36
- ![Step 50](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_50.png)
37
- ![Step 100](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_100.png)
38
- ![Step 150](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_150.png)
39
- ![Step 200](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_200.png)
40
- ![Step 250](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_250.png)
41
- ![Step 300](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_300.png)
42
- ![Step 350](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_350.png)
43
- ![Step 400](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_400.png)
44
- ![Step 450](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_450.png)
45
- ![Step 500](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_500.png)
46
- ![Step 550](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_550.png)
47
- ![Step 600](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_600.png)
48
- ![Step 650](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_650.png)
49
- ![Step 700](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_700.png)
50
- ![Step 750](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_750.png)
51
- ![Step 800](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_800.png)
52
- ![Step 850](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_850.png)
53
- ![Step 900](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_900.png)
54
- ![Step 950](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_950.png)
55
- ![Step 1000](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/image_step_1000.png)
 
 
 
56
 
57
 
58
  ## How to Use
@@ -132,6 +135,24 @@ for i, t in enumerate(tqdm.tqdm(scheduler.timesteps)):
132
  print("Denoising complete.")
133
  ```
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  ## Training
136
 
137
  If you want to train your own model, please have a look at the [official training example](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/training_example.ipynb)
@@ -162,4 +183,4 @@ If you use this model in your research or project, please cite the original `goo
162
 
163
  ## License
164
 
165
- This model is provided under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
 
33
 
34
  Here are some sample images generated by the model at different diffusion steps:
35
 
36
+ ### DDPM:
37
+ ![Step 750](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDPM/image_step_750.png)
38
+ ![Step 800](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDPM/image_step_800.png)
39
+ ![Step 850](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDPM/image_step_850.png)
40
+ ![Step 900](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDPM/image_step_900.png)
41
+ ![Step 950](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDPM/image_step_950.png)
42
+ ![Step 1000](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDPM/image_step_1000.png)
43
+
44
+ ### DDIM:
45
+ ![Step 750](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDIM/image_step_750.png)
46
+ ![Step 800](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDIM/image_step_800.png)
47
+ ![Step 850](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDIM/image_step_850.png)
48
+ ![Step 900](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDIM/image_step_900.png)
49
+ ![Step 950](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDIM/image_step_950.png)
50
+ ![Step 1000](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/DDIM/image_step_1000.png)
51
+
52
+ ### PNDM:
53
+ ![Step 750](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/PNDM/image_step_750.png)
54
+ ![Step 800](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/PNDM/image_step_800.png)
55
+ ![Step 850](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/PNDM/image_step_850.png)
56
+ ![Step 900](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/PNDM/image_step_900.png)
57
+ ![Step 950](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/PNDM/image_step_950.png)
58
+ ![Step 1000](https://huggingface.co/Mou11209203/ddpm-celebahq-256/resolve/main/images/PNDM/image_step_1000.png)
59
 
60
 
61
  ## How to Use
 
135
  print("Denoising complete.")
136
  ```
137
 
138
+ ## Scheduler
139
+
140
+ **DDPM** models can use *discrete noise schedulers* such as:
141
+
142
+ - [scheduling_ddpm](https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddpm.py)
143
+ - [scheduling_ddim](https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddim.py)
144
+ - [scheduling_pndm](https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_pndm.py)
145
+
146
+ for inference. Note that while the *ddpm* scheduler yields the highest quality, it also takes the longest.
147
+ For a good trade-off between quality and inference speed you might want to consider the *ddim* or *pndm* schedulers instead.
148
+
149
+ See the following code:
150
+
151
+ ```python
152
+ # !pip install diffusers
153
+ from diffusers import DDPMPipeline, DDIMPipeline, PNDMPipeline
154
+ ```
155
+
156
  ## Training
157
 
158
  If you want to train your own model, please have a look at the [official training example](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/training_example.ipynb)
 
183
 
184
  ## License
185
 
186
+ This model is provided under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
images/image_step_100.png DELETED
Binary file (197 kB)
 
images/image_step_1000.png DELETED
Binary file (106 kB)
 
images/image_step_150.png DELETED
Binary file (197 kB)
 
images/image_step_200.png DELETED
Binary file (197 kB)
 
images/image_step_250.png DELETED
Binary file (197 kB)
 
images/image_step_300.png DELETED
Binary file (197 kB)
 
images/image_step_350.png DELETED
Binary file (197 kB)
 
images/image_step_400.png DELETED
Binary file (197 kB)
 
images/image_step_450.png DELETED
Binary file (197 kB)
 
images/image_step_50.png DELETED
Binary file (197 kB)
 
images/image_step_500.png DELETED
Binary file (197 kB)
 
images/image_step_550.png DELETED
Binary file (197 kB)
 
images/image_step_600.png DELETED
Binary file (197 kB)
 
images/image_step_650.png DELETED
Binary file (197 kB)
 
images/image_step_700.png DELETED
Binary file (197 kB)
 
images/image_step_750.png DELETED
Binary file (197 kB)
 
images/image_step_800.png DELETED
Binary file (197 kB)
 
images/image_step_850.png DELETED
Binary file (197 kB)
 
images/image_step_900.png DELETED
Binary file (193 kB)
 
images/image_step_950.png DELETED
Binary file (174 kB)