FMsunyh / ddpm-denoising-diffusion-pytorch

stable diffusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ddpm-denoising-diffusion-pytorch

复现论文 Denoising Diffusion Probabilistic Model, in Pytorch。

python环境

  • torch 1.13.0
  • python 3.10

训练数据

百度云盘下载: CelebA/Img/img_align_celeba.zip

cp img_align_celeba.zip ./data/celebA/
cd ./data/celebA/
unzip img_align_celeba.zip

开启训练

  • MNIST
python train.py --dataset mnist --epochs 6 --channels 1
  • celebA
python train.py --dataset CelebA --epochs 100 --channels 3

输出路径

可以查看每一轮的预测结果

./outputs

测试效果

  • MNIST数据集,训练6轮后的测试效果
Alt text Alt text Alt text Alt text Alt text Alt text Alt text Alt text
Alt text Alt text Alt text Alt text Alt text Alt text Alt text Alt text
  • celebA数据集,训练50轮后的测试效果
Alt text Alt text Alt text Alt text Alt text Alt text Alt text Alt text
Alt text Alt text Alt text Alt text Alt text Alt text Alt text Alt text

优秀代码学习

参考

看过的文章

AIGC学习交流

Alt text

About

stable diffusion


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%