denoising-diffusion-pytorch icon indicating copy to clipboard operation
denoising-diffusion-pytorch copied to clipboard

Sharing the checkpoint

Open gwang-kim opened this issue 3 years ago • 9 comments

Hi, thanks for your great implementation.

Can you share the checkpoint trained on FFHQ dataset?

Thanks.

gwang-kim avatar Sep 05 '21 10:09 gwang-kim

I'm newly training the model on ffhq. It will need some time...

rosinality avatar Sep 09 '21 00:09 rosinality

Thanks for your reply. I'll be happy if you share the model when training is finished!

gwang-kim avatar Sep 09 '21 01:09 gwang-kim

I have finished the training. You can find checkpoints in https://www.dropbox.com/s/rpoou152x8pt1ag/ckpt-2400k.pt?dl=0.

rosinality avatar Sep 26 '21 06:09 rosinality

@rosinality Thanks a lot!

gwang-kim avatar Sep 27 '21 00:09 gwang-kim

@rosinality Thank you for sharing! What is the proper way to init the model for the checkpoint that you provided? Unet(... ? )

YoelShoshan avatar Oct 31 '21 09:10 YoelShoshan

@YoelShoshan You can use the parameters from https://github.com/rosinality/denoising-diffusion-pytorch/blob/master/config/diffusion.conf

or like this:

from tensorfn import load_config

from diffusion import GaussianDiffusion

conf = load_config(DiffusionConfig, 'config/diffusion.conf')
ckpt = torch.load('ckpt-2400k.pt')
model = conf.model.make()
model.load_state_dict(ckpt['ema'])
model = model.to('cuda')
betas = conf.diffusion.beta_schedule.make()
diffusion = GaussianDiffusion(betas).to('cuda')

rosinality avatar Oct 31 '21 12:10 rosinality

@rosinality Thanks!

YoelShoshan avatar Oct 31 '21 17:10 YoelShoshan

@rosinality could you share the FFHQ pretrained model again? I think the dropbox link from the previous comment was deleted

GaParmar avatar Jul 07 '22 20:07 GaParmar

@GaParmar Hello, I have re-uploaded the checkpoint. https://www.dropbox.com/s/9z5yr95og67z78p/ddpm-2400k.pt?dl=0

rosinality avatar Jul 08 '22 00:07 rosinality