-
Notifications
You must be signed in to change notification settings - Fork 6
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 get the npy file of w_plus? #13
Comments
We use e4e encoder to invert real images into w+ space. We provide pretrained e4e models for FFHQ512, FFHQ512_dog, FFHQ512_dog_cat in here. Please clone the e4e repo and download the pretrained models, and run
in e4e folder. The w_plus latent codes will be in the save_dir. Then you just need to save the torch file to npy file. |
@betterze
|
@snow1929 which tensorflow version you are using? I use 1.14 |
This error is related to the environment (gcc). Pls install the environment following stylegan2-ada. |
Hi @betterze ,
|
Would you mind printing the shape of [imgs,invert,target] separately? |
The target images are in shape (256,256), rather than (512, 512). So it causes the error. |
Which target model (target_pkl) you are using? |
The images in the target_path are in (256, 256), could you doublecheck this. Go to the folder and check the image size. Remove all images in the target_path, and rerun
|
@betterze how to get "checkpoint.pt" I have to finished the prtrained model by [e4e encoder]? |
how to get the npy file of w_plus?
The text was updated successfully, but these errors were encountered: