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

How to style perfectly #109

Open
seyeon01 opened this issue Sep 13, 2024 · 4 comments
Open

How to style perfectly #109

seyeon01 opened this issue Sep 13, 2024 · 4 comments

Comments

@seyeon01
Copy link

I ran the code in github as it is, but it doesn't
What principle is the combination of the original photo and the anime photo in the code?

Is it adjusting multiple levels of iter and batch size or adjusting --style_loss 0.25 --CX_loss 0.25 --perc_loss 1 --id_loss 1 --L2_reg_loss 0.015 in finetune_dual stylegan.py?

I tried until the end, but when I adjusted the parameters, the face shape didn't come out, the original image wasn't learned, or the color was weird. Which parameters should I adjust to get a GitHub-like result?

@seyeon01
Copy link
Author

I ran the code in github as it is, but it doesn't
What principle is the combination of the original photo and the anime photo in the code?

Is it adjusting multiple levels of iter and batch size or adjusting --style_loss 0.25 --CX_loss 0.25 --perc_loss 1 --id_loss 1 --L2_reg_loss 0.015 in finetune_dual stylegan.py?

I tried until the end, but when I adjusted the parameters, the face shape didn't come out, the original image wasn't learned, or the color was weird. Which parameters should I adjust to get a GitHub-like result?

What I understand is to adjust the parameters.

@williamyang1991
Copy link
Owner

Yes. I tune the parameters for each dataset since we found different styles have very different characteristics.
I mainly tune λID and λreg for each style dataset to achieve ideal performance.
These two could make the network from model collapse.

And also large batch size (e.g., 8*4=32) gives better results than small batch size,

@seyeon01
Copy link
Author

Thank you for your response.
Due to my computer's performance, I need to reduce the number of iterations when increasing the batch size. Will this affect the results?

@williamyang1991
Copy link
Owner

I think it is OK.

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

2 participants