justinpinkney/awesome-pretrained-stylegan

For the StyleGan projectd, can we use pretrained model to resume training?

Moamoza opened this issue · 1 comments

For the StyleGan projectd, can we use pretrained model to resume training?

A pretrained model can be used to resume training, assuming you have got the same resolution and config etc. The original repository doesn't expose the option in the command line interface of run_training, but you can take a look at my fork (https://github.com/justinpinkney/stylegan2) which gives a --resume-pkl option at the command line. You can then run the training using something like:

python run_training.py --num-gpus=1 --metric=fid50k --data-dir=./dataset --config=config-f --dataset=my-dataset --min-h=4 --min-w=4 --res-log2=8 --result-dir="/content/drive/My Drive/somewhere" --resume-pkl="my-pretrained-mdoel.pkl"