zoubohao / DenoisingDiffusionProbabilityModel-ddpm-

This may be the simplest implement of DDPM. You can directly run Main.py to train the UNet on CIFAR-10 dataset and see the amazing process of denoising.
MIT License
1.48k stars 156 forks source link

如何利用训练好的模型生成图片 #27

Open sunli-destiny opened 1 year ago

sunli-destiny commented 1 year ago

未在项目中发现如何利用训练好的DDPM模型进行图片生成,作者可以帮忙回复下吗,感谢!

CyberAI-XDU commented 11 months ago

在eval中对一个噪声进行去噪即为生成

tantantan007 commented 10 months ago

未在项目中发现如何利用训练好的DDPM模型进行图片生成,有代码吗,作者可以帮忙回复下吗

CyberAI-XDU commented 10 months ago

在main中把state改为eval就是采样,即生成

tantantan007 commented 10 months ago

感谢感谢,终于弄出来了

qtwasd commented 4 months ago

图片再哪里生成的啊请问

qtwasd commented 4 months ago

感谢感谢,终于弄出来了

请问图片是怎么生成的啊 将state后面的train改成eval了