C0untFloyd / Coiffeur

[ICCV 2023] HairCLIPv2: Unifying Hair Editing via Proxy Feature Blending

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coiffeur - Interactive UI fork of HairClip v2

HairCLIPv2 HairCLIPv2 supports hairstyle and color editing individually or jointly with unprecedented user interaction mode support, including text, mask, sketch, reference image, etc.

Getting Started

Prerequisites

$ pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
$ pip install ftfy regex tqdm matplotlib jupyter ipykernel opencv-python scikit-image kornia==0.6.7 face-alignment==1.3.5 dlib==19.22.1
$ pip install git+https://github.com/openai/CLIP.git

Pretrained Models

Download and put all the downloaded pretrained weights into the pretrained_models directory.

Path Description
FFHQ StyleGAN StyleGAN model pretrained on FFHQ with 1024x1024 output resolution.
Face Parse Model Pretrained face parse model taken from Barbershop.
Face Landmark Model Used to align unprocessed images.
Bald Proxy Bald proxy weights from HairMapper.
Sketch Proxy Sketch proxy weights trained on hair-sketch dataset using E2style.

About

[ICCV 2023] HairCLIPv2: Unifying Hair Editing via Proxy Feature Blending


Languages

Language:Jupyter Notebook 95.7%Language:Python 3.4%Language:Cuda 0.7%Language:C++ 0.3%Language:C 0.0%