Official Implementation of the paper "CLIP-Head: Text-Guided Generation of Textured Neural Parametric 3D Head Models" accepted at SIGGRAPH Asia 2023 Technical Communications.
If you like our project, please give us a star ⭐ on GitHub for latest update.
- Initial Code Release
- Release Checkpoints
- Add Dreambooth support
- Release code for rendering pipeline
- Code Optimization
- Gradio demo
- Add SDXL Refiner
- Texture Synthesis with SDXL and LoRA
- Parameterization code for FLAME head model
- In case you face issues while building pytorch3d, try using spack to build with a different gcc version
# Clone the repo
git clone https://github.com/raipranav384/CLIP-Head.git
cd CLIP-Head
# Create a new Anaconda environment
conda create -n clip_head python=3.9
conda activate clip_head
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
# Install NPHM dependencies
cd NPHM
mkdir checkpoints
pip install -e .
cd ..
# Install other requirements
pip install -r requirements.txt
# Install PyTorch3D
pip install "git+https://github.com/facebookresearch/pytorch3d.git"
- Download the NPHM's pretrained checkpoints from here and place it in
./NPHM/checkpoints - Download checkpoints for
$ControlNet_{uv}$ from here. Unzip in./checkpoints
python run.py --prompt "face of a man smiling with joker makeup"
- Thanks to NPHM authors for providing the dataset and code.
- Thanks to the amazing work by lllyasviel on ControlNet.
