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

Training with other pretrained StyleGAN2 error #35

Open
SaranchaiAng opened this issue May 13, 2022 · 2 comments
Open

Training with other pretrained StyleGAN2 error #35

SaranchaiAng opened this issue May 13, 2022 · 2 comments

Comments

@SaranchaiAng
Copy link

I trained successfully with pretrained ffhq as example code.

However I tried to trained using other pretrained model as a source model for example Anime portraits from https://github.com/justinpinkney/awesome-pretrained-stylegan2 (I already convert the pretrained model from .pkl to .pt) but I got an error it said

load model: /content/drive/MyDrive/FEWSHOTGAN/data/checkpoints/anime.pt Traceback (most recent call last): File "/content/drive/MyDrive/FEWSHOTGAN/few-shot-gan-adaptation-main/train.py", line 551, in <module> assert args.source_key in args.ckpt #comment AssertionError

Anyone know how to fix this?
Thank you

@giddyyupp
Copy link

Hi,
afai see this line does nothing. you could just comment it out. you don't have to load the ffhq model, it should be any pretrained model.

@li-car-fei
Copy link

Hi, afai see this line does nothing. you could just comment it out. you don't have to load the ffhq model, it should be any pretrained model.

If I want to fine-tune on a trained stylegan, should I load on generator or g_ema? Or should both be loaded?

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

3 participants