fahadshamshad / Clip2Protect

[CVPR 2023] Official repository of paper titled "CLIP2Protect: Protecting Facial Privacy using Text-Guided Makeup via Adversarial Latent Search".
https://fahadshamshad.github.io/Clip2Protect/
98 stars 12 forks source link

experiment problem #7

Closed vegetable-coder11 closed 1 year ago

vegetable-coder11 commented 1 year ago

I appreciate your sharing work.However, I'm facing some challenges with the generated results when I directly input the command "python main.py --data_dir input_images --latent_path latents.pt --protected_face_dir results". The generated images do not have satisfactory visual quality. I am specifically interested in performing makeup transfer. Could you please provide guidance on how to resolve this issue?"

vegetable-coder11 commented 1 year ago

9488 jpg_wh300 0_00049

fahadshamshad commented 1 year ago

To perform only makeup transfer without the adversarial component, you can set the weightage of the adversarial loss to 0. The proposed approach is designed to work with aligned face images. This is a limitation inherent to StyleGAN. From the image you've attached, it seems that it hasn't been aligned using StyleGAN's preprocessing. Please ensure that you preprocess your images using StyleGAN preprocessing.