HECO is a framework for dense head-object contact estimation that addresses diverse head-object interactions and hair occlusion. Using our synthetic dataset COHE, HECO learns semantic relationships between head regions and interacting objects through text-guided semantic alignment, and infers contact beyond visible regions through hair occlusion-aware learning with amodal inpainting.
- We recommend you to use an Anaconda virtual environment. Install PyTorch >=2.5.1 and Python >=3.10.0. Our latest HECO model is tested on Python 3.10.22, PyTorch 2.5.1, CUDA 12.1.
- Setup the environment.
# Initialize conda environment
conda create -n heco python=3.10 -y
conda activate heco
# Install PyTorch
pip install torch==2.5.1 torchvision==0.20.1 --index-url https://download.pytorch.org/whl/cu121
# Install all remaining packages
bash scripts/install_requirements.sh
You need to follow our directory structure of the data.
- For quick demo: See docs/data_demo.md.
- For evaluation: See docs/data_eval.md.
Then, download the official checkpoints and place them in the release_checkpoint from HuggingFace by running:
bash scripts/download_heco_checkpoints.sh
To run HECO on demo images using the HMR2.0 head detector, please run:
python demo.py --backbone {BACKBONE_TYPE} --checkpoint {CKPT_PATH} --input_path {INPUT_PATH}
For example,
# SigLIP2-Giant (Default, WebLI initialized) backbone
python demo.py --backbone siglip2-giant --checkpoint release_checkpoint/heco_final_siglip2_giant_checkpoint.ckpt --input_path asset/example_images
To evaluate HECO on DAMON, please run:
python test.py --backbone {BACKBONE_TYPE} --checkpoint {CKPT_PATH} --test_name DAMON
For example,
# SigLIP2-Giant (Default, WebLI initialized) backbone
python test.py --backbone siglip2-giant --checkpoint release_checkpoint/heco_final_siglip2_giant_checkpoint.ckpt --test_name DAMON
We thank:
- HACO and FECO for dense contact estimation framework.
- LaMa for inspiration on hair occlusion-aware learning.
- SigLIP2 for inspiration on text-guided semantic alignment.
@article{jung2026heco,
title = {Learning Dense Head-Object Contact Estimation with Synthetic Data},
author = {Jung, Daniel Sungho and Lee, Kyoung Mu},
journal = {arXiv preprint arXiv:2611.30751},
year = {2026}
}

