pbaylies / stylegan-encoder

StyleGAN Encoder - converts real images to latent space
Other
740 stars 180 forks source link

Compatibility with pretrained stylegan2 model? #58

Closed Mehrab-Tanjim closed 3 years ago

Mehrab-Tanjim commented 4 years ago

If I give the model url for pretrained stylegan2 model, it throws an error, so I think the current repo is not yet compatible with stylegan2. Any plan to include that?

ChengBinJin commented 4 years ago

@Mehrab-Tanjim StyleGANv2 can work @pbaylies repository. You just need to revise several parts and include some files from the official repository.

MichalZajac commented 4 years ago

Hi @ChengBinJin, Could you please be more specific? - Do you have some repository where you did those adaptations? I would like to take a look. Thank you.

ChengBinJin commented 4 years ago

@MichalZajac Put custom_ops.py from StyleGANv2 under the folder of tflib: image

Revise network.py 279 line as the following: image

ChengBinJin commented 4 years ago

@MichalZajac I revised it several months ago, some details I forgot it. But Pbaylies inversion can work for StyleGANv2 actually.

MichalZajac commented 4 years ago

@ChengBinJin thank you you saved my day

datduong commented 3 years ago

Has anyone try this trick to make this github work with stylegan2-ada? Thanks.

pbaylies commented 3 years ago

@datduong https://github.com/pbaylies/stylegan2-ada