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/
96 stars 11 forks source link

experiment problem #7

Closed vegetable-coder11 closed 10 months ago

vegetable-coder11 commented 11 months 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 11 months ago

9488 jpg_wh300 0_00049

fahadshamshad commented 11 months 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.