You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HairCLIPv2: Unifying Hair Editing via Proxy Feature Blending (ICCV2023)
This repository hosts the official PyTorch implementation of the paper: "HairCLIPv2: Unifying Hair Editing via Proxy Feature Blending".
HairCLIPv2 supports hairstyle and color editing individually or jointly with unprecedented user interaction mode support, including text, mask, sketch, reference image, etc.
Tianyi Wei1,
Dongdong Chen2,
Wenbo Zhou1,
Jing Liao3,
Weiming Zhang1,
Gang Hua4,
Nenghai Yu1 1University of Science and Technology of China, 2Microsoft Cloud AI, 3City University of Hong Kong, 4Xi'an Jiaotong University
News
2023.12.08: The initial version of the code is released. 2023.10.12: HairCLIPv2 is accepted by ICCV2023! 🎉
All inputs are in the test_images folder and all images should be made sure to be aligned to 1024x1024 according to FFHQ standards.
Path
Description
unaligned_img
Natural images that should be aligned using python scripts/align_face.py Results are stored in aligned_img.
aligned_img
Depending on the usage, they should be moved to src_img or ref_img.
src_img
Aligned image to be edited.
src_F
The latent code of src_img being inverted is not required to be provided by the user.
ref_img
Aligned hairstyle reference image, hair color reference image.
ref_latent
The latent code of ref_img being inverted is not required to be provided by the user.
Enjoy
Open hairclip_v2_demo.ipynb to unlock your versatile hairstyles!
If you run it on a remote server, you need to run jupyter notebook --port=20367 --allow-root --ip=0.0.0.0 first. then use e.g. VS Code to select that Jupyter Server as your kernel.
If you find our work useful for your research, please consider citing the following papers :)
@article{wei2023hairclipv2,
title={HairCLIPv2: Unifying Hair Editing via Proxy Feature Blending},
author={Wei, Tianyi and Chen, Dongdong and Zhou, Wenbo and Liao, Jing and Zhang, Weiming and Hua, Gang and Yu, Nenghai},
journal={Proceedings of the IEEE/CVF International Conference on Computer Vision},
year={2023}
}
@article{wei2022hairclip,
title={Hairclip: Design your hair by text and reference image},
author={Wei, Tianyi and Chen, Dongdong and Zhou, Wenbo and Liao, Jing and Tan, Zhentao and Yuan, Lu and Zhang, Weiming and Yu, Nenghai},
journal={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
year={2022}
}
About
[ICCV 2023] HairCLIPv2: Unifying Hair Editing via Proxy Feature Blending