Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing the checkpoint #3

Open
gwang-kim opened this issue Sep 5, 2021 · 9 comments
Open

Sharing the checkpoint #3

gwang-kim opened this issue Sep 5, 2021 · 9 comments

Comments

@gwang-kim
Copy link

Hi, thanks for your great implementation.

Can you share the checkpoint trained on FFHQ dataset?

Thanks.

@rosinality
Copy link
Owner

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

@gwang-kim
Copy link
Author

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

@rosinality
Copy link
Owner

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

@gwang-kim
Copy link
Author

@rosinality Thanks a lot!

@YoelShoshan
Copy link

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

@rosinality
Copy link
Owner

@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')

@YoelShoshan
Copy link

@rosinality Thanks!

@GaParmar
Copy link

GaParmar commented Jul 7, 2022

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

@rosinality
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants