DongzeLi-CASIA/RiDDLE
DongzeLi-CASIA/RiDDLE has 56 GitHub stars and 2 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-15 06:50 UTC. Last push 2025-07-03.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
Author implementation of RiDDLE: Reversible and Diversified De-identification with Latent Encryptor (CVPR 2023)
Creative & MediaREADME.md
OriginalRiDDLE (CVPR 2023)

Arxiv
Author implementation of RiDDLE: Reversible and Diversified De-identification with Latent Encryptor
Dongze Li, Wei Wang, Kang Zhao, Jing Dong and Tieniu Tan
Abstract
This work presents RiDDLE, short for Reversible and Diversified De-identification with Latent Encryptor, to protect the identity information of people from being misused. Built upon a pre-learned StyleGAN2 generator, RiDDLE manages to encrypt and decrypt the facial identity within the latent space. The design of RiDDLE has three appealing properties. First, the encryption process is cipher-guided and hence allows diverse anonymization using different passwords. Second, the true identity can only be decrypted with the correct password, otherwise the system will produce another de-identified face to maintain the privacy. Third, both encryption and decryption share an efficient implementation, benefiting from a carefully tailored lightweight encryptor. Comparisons with existing alternatives confirm that our approach accomplishes the de-identification task with better quality, higher diversity, and stronger reversibility. We further demonstrate the effectiveness of RiDDLE in anonymizing videos. Code and models will be made publicly available.
Pipeline

Usage
Environment
To run the inference and the training scripts, first you need to set up a virtual environment by conda env create -f RiDDLE.yaml
Inference
To perform identity encryption and decryption, just python coach_test.py
Train
To train a latent encryptor, just sh scripts/run_coach_id_pwd_same.sh
We also support Distributed Data Parallel (DDP) training, sh scripts/run_coach_id_pwd_same_ddp.sh.
Data and Pretrain models
Our data and pretrain models can be found at baidudrive password is sqp8, or googledrive
Video De-identification Results
We combine our method with Stitch Tuning to de-identify videos.
Curry
Lebron
Jim
Citation
If you found this repo useful, please cite
@inproceedings{li2023riddle,
title={RiDDLE: Reversible and Diversified De-identification with Latent Encryptor},
author={Li, Dongze and Wang, Wei and Zhao, Kang and Dong, Jing and Tan, Tieniu},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month={June},
year={2023}
}
Acknowledgements
Some parts of our code is based on HairCLIP and e4e, thanks for their great work.