GAN2Shape icon indicating copy to clipboard operation
GAN2Shape copied to clipboard

how to generate. pt files?

Open Charlotte-15089383344 opened this issue 3 years ago • 2 comments

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

Charlotte-15089383344 avatar Dec 17 '22 08:12 Charlotte-15089383344

@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

XingangPan avatar Dec 18 '22 10:12 XingangPan

@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?

Charlotte-15089383344 avatar Feb 27 '23 02:02 Charlotte-15089383344