How to generate a safe customized portrait?
The overall framework of the proposed Adv-CPG. The framework comprises three key modules: [A] a multi-modal image customizer (MMIC), [B] an ID encryptor (En1), and [C] an encryption enhancer (En2). En1 and En2 enable incremental facial privacy protection, and MMIC achieves fine-grained and personalized portrait generation.
python infer_adv_cpg.py
The code for this work builds upon ConsistentID. We sincerely thank them for their excellent work; please visit their project page for more details. Please maintain the same environment configuration as theirs and directly run infer_adv_cpg.py to execute this work.
If you found this code helpful, please consider citing:
@InProceedings{Wang_2025_CVPR,
author = {Wang, Junying and Zhang, Hongyuan and Yuan, Yuan},
title = {Adv-CPG: A Customized Portrait Generation Framework with Facial Adversarial Attacks},
booktitle = {Proceedings of the Computer Vision and Pattern Recognition Conference (CVPR)},
month = {June},
year = {2025},
pages = {21001-21010}
}
Python
91.4%
Cuda
5.2%
C++
2.9%
How to generate a safe customized portrait?
The overall framework of the proposed Adv-CPG. The framework comprises three key modules: [A] a multi-modal image customizer (MMIC), [B] an ID encryptor (En1), and [C] an encryption enhancer (En2). En1 and En2 enable incremental facial privacy protection, and MMIC achieves fine-grained and personalized portrait generation.
python infer_adv_cpg.py
The code for this work builds upon ConsistentID. We sincerely thank them for their excellent work; please visit their project page for more details. Please maintain the same environment configuration as theirs and directly run infer_adv_cpg.py to execute this work.
If you found this code helpful, please consider citing:
@InProceedings{Wang_2025_CVPR,
author = {Wang, Junying and Zhang, Hongyuan and Yuan, Yuan},
title = {Adv-CPG: A Customized Portrait Generation Framework with Facial Adversarial Attacks},
booktitle = {Proceedings of the Computer Vision and Pattern Recognition Conference (CVPR)},
month = {June},
year = {2025},
pages = {21001-21010}
}
Python
91.4%
Cuda
5.2%
C++
2.9%