-
Notifications
You must be signed in to change notification settings - Fork 37
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
Edit Vector #20
Comments
please refer to #17 |
The vector used in our age model has been saved within the model ckpt: def load_model(path, device):
local_path = hf_hub_download('PKUWilliamYang/StyleGANEX', path)
ckpt = torch.load(local_path, map_location='cpu')
opts = ckpt['opts']
opts['checkpoint_path'] = local_path
opts['device'] = device
opts = Namespace(**opts)
pspex = pSp(opts).to(device).eval()
pspex.latent_avg = pspex.latent_avg.to(device)
if 'editing_w' in ckpt.keys():
return pspex, ckpt['editing_w'].clone().to(device)
return pspex If you want to use another vector, you need to train a new model on that vector. |
I have a few questions:
|
|
Thanks you for your help! |
This is how I obtain the editing vector #17 (comment) In huggingface, we also provide the editing vectors
|
Oh! I see.
Big thanks! |
Your interfacegan vector is based on StyleGAN-CelebHQ |
I have tried all the age vectors in 1, but none of them work as well as yours. Because I want to retrain with some new expressions, I need to find the origin of the edit vectors. |
I check my code. I use the edting vector from anycostgan |
Can I edit an image using the StyleGANEX inversion model, similar to an image-to-image model with skip connections, by modifying the vector to achieve various styles, such as adding glasses? Additionally, when using the StyleGANEX model to transform images, can I edit the picture for multiple styles using a single model by calculating the editing vector, and does this process involve skip connections? |
Two ways of editing
Both way can handle arbitrary face images. |
If I want to train a model with skip connections for another editing style, how should I start the training process, and how many datasets should I prepare?and how should I specify the command-line parameters for training? |
Thanks for awesome work!.
How can i obtain a attribute edit vector (exp: smile, glasses, ...)
The text was updated successfully, but these errors were encountered: