docs: update README about conditional

This commit is contained in:
snsd0805 2023-03-22 16:22:08 +08:00
parent 9852bf3530
commit 95600b80c9
Signed by: snsd0805
GPG Key ID: 569349933C77A854
3 changed files with 9 additions and 1 deletions

View File

@ -7,6 +7,13 @@ It's just for fun, the Unet model does not include attention, normalization, etc
![](./images/Screenshot_20230314_225320.png) ![](./images/Screenshot_20230314_225320.png)
![](./images/ezgif.com-gif-maker.gif) ![](./images/ezgif.com-gif-maker.gif)
## Classifier Guidence DDPM
ref: Diffusion Models Beat GANs on Image Synthesis (https://arxiv.org/abs/2105.05233)
- generate "7"
- ![](./images/Screenshot_20230322_161942.png)
- generate "2"
- ![](./images/Screenshot_20230322_162114.png)
## Traning ## Traning
Before training, please set up the config.ini file: Before training, please set up the config.ini file:
@ -36,5 +43,6 @@ To generate 16 pictures, run the following command:
The pictures will be output to the `./output` directory. The pictures will be output to the `./output` directory.
``` ```
$ python sample 16 $ python sample 16 # unconditional
$ python sample 16 7 # condiditional, want to generate "7" pictures
``` ```

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB