-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fail to load network .pkl file #6
Comments
Hello, thank you for reaching out to us! Our recommendation is preparing a Docker container, following the README.md. If you don't want to rely on Docker for some reason, it should be good to use the same versions of packages described in the following files. san/stylesan-xl/requirements.txt Lines 1 to 20 in 0e52b14
Line 5 in 0e52b14
This may work. Thank you. |
Hi @TakashiShibuyaSony, thanks for your instruction which works perfectly for me. Another question, given the CIFAR model snapshot, is there any way to resume the training from the pkl file? do I also need the stem network .pkl file? Thanks a lot in advance. Best, |
Hi @Baoren1996, Line 144 in 0e52b14
Regarding the .pkl file of the stem network, the current code requires it (Our codebase build on that of StyleGAN-XL, and their code requires a stem network even in resuming training). But, I guess you can resume the training without the stem network by reloading the ckpt for resume in the following lines again. san/stylesan-xl/training/networks_stylegan3_resetting.py Lines 613 to 614 in 0e52b14
And, the succeeding lines should also be modified. In particular, the following lines are not necessary in this case because these lines are for appending new layers in progressive training. san/stylesan-xl/training/networks_stylegan3_resetting.py Lines 651 to 673 in 0e52b14
Thanks! |
Update dill to 0.3.9. It works for me. |
Hi @Cwyxx, Thank you very much for your helpful information. We updated requirements.txt |
I tried to download the saved network from the link below:
https://zenodo.org/record/10947091/files/stylesan-xl_cifar10.pkl
however, when I tried to use the following code for evaluation:
but got error:
Python==3.8.10
Pytorch==2.4.0+cu121
Can somebody help?
The text was updated successfully, but these errors were encountered: