[ICLR 2025 Poster] SurFhead: Affine Rig Blending for Geometrically Accurate 2D Gaussian Surfel Head Avatars
The official implementation for SurFhead: Affine Rig Blending for Geometrically Accurate 2D Gaussian Surfel Head Avatars in ICLR '25.
Authors: Jaeseong Lee*, Taewoong Kang*, Marcel C. Bühler, Min-Jung Kim, Sungwon Hwang, Junha Hyung, Hyojin Jang, Jaegul Choo
This code is licensed under CC BY-NC-SA 4.0.
This repository is a derivative work based on GaussianAvatars by Toyota Motor Europe NV/SA and its affiliated companies.
All intellectual property rights of the original software remain with Toyota Motor Europe.
Commercial use of this derivative work is strictly prohibited without an express license agreement with Toyota Motor Europe.
We heavily followed GaussianAvatars.
Our default installation method is based on Conda package and environment management:
git clone https://github.com/surfhead2025/SurFhead.git --recursive
cd SurFhead
conda create --name surfhead -y python=3.10
conda activate surfhead
# Install CUDA and ninja for compilation
conda install -c "nvidia/label/cuda-11.7.1" cuda-toolkit ninja # use the right CUDA versionln -s "$CONDA_PREFIX/lib" "$CONDA_PREFIX/lib64" # to avoid error "/usr/bin/ld: cannot find -lcudart"# Install PyTorch (make sure that the CUDA version matches with "Step 1")
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu117
# or
conda install pytorch torchvision pytorch-cuda=11.7 -c pytorch -c nvidia
# make sure torch.cuda.is_available() returns True
conda install -c conda-forge cudatoolkit-dev -y
pip install -r requirements.txtWe kindly recommend to follow the GaussianAvatars's instruction.
In the each shell, we curated all ablation studies. Last paragraph is our final version, SurFhead. First, you should change the option data directory, prefix_data in {train/test}_cluster_external.sh.
Note
- The paper version of SurFhead is trained on a single RTX 3090.
- If you want final paper version, just comment out the paragraphs except for the last one.
sh train_cluster_external.shDefault Command Line Arguments for train.py
Path to the source directory containing a COLMAP or Synthetic NeRF data set.
Path where the trained model should be stored (output/<random> by default).
Add this flag to use a training/val/test split for evaluation.
Add this flag to bind 3D Gaussians to a driving mesh, e.g., FLAME.
Specifies resolution of the loaded images before training. If provided 1, 2, 4 or 8, uses original, 1/2, 1/4 or 1/8 resolution, respectively. For all other values, rescales the width to the given number while maintaining image aspect. If not set and input image width exceeds 1.6K pixels, inputs are automatically rescaled to this target.
Specifies where to put the source image data, cuda by default, recommended to use cpu if training on large/high-resolution dataset, will reduce VRAM consumption, but slightly slow down training. Thanks to HrsPythonix.
Add this flag to use white background instead of black (default), e.g., for evaluation of NeRF Synthetic dataset.
Order of spherical harmonics to be used (no larger than 3). 3 by default.
Flag to make pipeline compute forward and backward of SHs with PyTorch instead of ours.
Flag to make pipeline compute forward and backward of the 3D covariance with PyTorch instead of ours.
Enables debug mode if you experience erros. If the rasterizer fails, a dump file is created that you may forward to us in an issue so we can take a look.
Debugging is slow. You may specify an iteration (starting from 0) after which the above debugging becomes active.
Number of total iterations to train for, 30_000 by default.
IP to start GUI server on, 127.0.0.1 by default.
Port to use for GUI server, 60000 by default.
Space-separated iterations at which the training script computes L1 and PSNR over test set, 7000 30000 by default.
Space-separated iterations at which the training script saves the Gaussian model, 7000 30000 <iterations> by default.
Space-separated iterations at which to store a checkpoint for continuing later, saved in the model directory.
Path to a saved checkpoint to continue training from.
Flag to omit any text written to standard out pipe.
Spherical harmonics features learning rate, 0.0025 by default.
Opacity learning rate, 0.05 by default.
Scaling learning rate, 0.005 by default.
Rotation learning rate, 0.001 by default.
Number of steps (from 0) where position learning rate goes from initial to final. 30_000 by default.
Initial 3D position learning rate, 0.00016 by default.
Final 3D position learning rate, 0.0000016 by default.
Position learning rate multiplier (cf. Plenoxels), 0.01 by default.
Iteration where densification starts, 500 by default.
Iteration where densification stops, 15_000 by default.
Limit that decides if points should be densified based on 2D position gradient, 0.0002 by default.
How frequently to densify, 100 (every 100 iterations) by default.
How frequently to reset opacity, 3_000 by default.
Influence of SSIM on total loss from 0 to 1, 0.2 by default.
Percentage of scene extent (0--1) a point must exceed to be forcibly densified, 0.01 by default.
*** Note that these command lines are provided from GaussianAvatars. If you are familiar with these, please directly read below our Augmented version. ***
By default, the trained models use all available images in the dataset. To train them while withholding a validation set and a test set for evaluation, use the --eval flag.
A complete evaluation on the validation set (novel-view synthesis) and test set (self-reenactment) will be conducted every --interval iterations. You can check the metrics in the terminal or within Tensorboard. Although we only save a few images in Tensorboard, the metrics are computed on all images.
Augmented Command Line Arguments for train.py
Utilizing the preprocessed foreground mask, remove potential blobs
Gradient cutting-off on Rotation and Position of Eyeballs.
Magnitude of forcing the opacities of Eyeballs to near 1, 0.1 by default.
Use Spherical Gaussians for capturing Eyeball Specularities.
Which SG type you want to use, sg or asg or lasg.
lasg is our simplified version of ASG to only represent the white ample light with a monochrome channel.
Use Jacobian Deformations or not.
Influence of primitive Normal's norm. This is required when DTF is on state.
Train with Jacobian Blend Skinning (JBS).
sh test_cluster_external.shTBD
TBD
If you find our work useful, please consider citing:
@inproceedings{
lee2025surfhead,
title={SurFhead: Affine Rig Blending for Geometrically Accurate 2D Gaussian Surfel Head Avatars},
author={Jaeseong Lee and Taewoong Kang and Marcel Buehler and Min-Jung Kim and Sungwon Hwang and Junha Hyung and Hyojin Jang and Jaegul Choo},
booktitle={The Thirteenth International Conference on Learning Representations},
year={2025},
url={https://openreview.net/forum?id=1x1gGg49jr}
}