yuval-alaluf / hyperstyle

Official Implementation for "HyperStyle: StyleGAN Inversion with HyperNetworks for Real Image Editing" (CVPR 2022) https://arxiv.org/abs/2111.15666
https://yuval-alaluf.github.io/hyperstyle/
MIT License
1.01k stars 115 forks source link

weights_delta in GAN Inversion #51

Closed yuxu915 closed 2 years ago

yuxu915 commented 2 years ago

Hi, thanks for your great work! to edit a real image, I'd like to save the latent code files and weights_delta files, so that I don't need to run gan inversion next time. I save them as .npy files, however, when I try to load them, something wrong with "weights_delta"

image

ValueError: only one element tensors can be converted to Python scalars

Any hints would be helpful!

yuval-alaluf commented 2 years ago

Where in the code does your code fail? I am not sure exactly what you are trying to do here.