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 generate. pt files? #48

Open
Charlotte-15089383344 opened this issue Dec 17, 2022 · 2 comments
Open

how to generate. pt files? #48

Charlotte-15089383344 opened this issue Dec 17, 2022 · 2 comments

Comments

@Charlotte-15089383344
Copy link

Gan2shape Project Author:
Hello! Recently, we are trying to reproduce the Gan2shape project, but we have encountered the following problems, and we hope to get your reply!
You mentioned using the code in stylegan2-pytorch to project pictures into potential space to obtain. pt files, but we used the stylegan2-celeba-config-e.pt provided by you to run in stylegan2-pytorch, and reported that the model parameters did not match. Here, I want to ask you how to generate. pt files? I look forward to your reply!
d6e7b823daacfd11558318a056af4d7

@XingangPan
Copy link
Owner

@Charlotte-15089383344 Hi, the reason is that the checkpoint has config-e but your model has config-f. To fix this, you should specify channel_multiplier=1 at https://github.com/rosinality/stylegan2-pytorch/blob/master/projector.py#L149

@Charlotte-15089383344
Copy link
Author

@Charlotte-15089383344 Hi, the reason is that the checkpoint has config-e but your model has config-f. To fix this, you should specify channel_multiplier=1 at https://github.com/rosinality/stylegan2-pytorch/blob/master/projector.py#L149

Thank you very much for your reply! At present, the final image generated by the project is 128 resolution, I would like to ask which part of the project the code is in this part, do you have any other suggestions for improving the quality of the project image, such as resolution?

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