SynthHair: Leveraging MetaHumans for a High-Quality 4K Hair Matting Dataset

Markus Karmann, Shile Li, Qi Zhang, Peng-Tao Jiang, Bo Li, Puneet K. Dokania, Philip Torr, Onay UrfaliogluarXiv 2026

TL;DR

Human heads sprout roughly 100,000 individual hairs, making pixel-perfect manual annotation at 4K resolution practically impossible—and green screens useless when hair rests directly against skin. By using Unreal Engine and MetaHumans, the authors bypass reality to generate SynthHair, an ultra-high-resolution synthetic dataset with strand-level accuracy. Models trained on these digital humans generalize remarkably well to real photos, cleanly isolating wisps of hair that leave models trained on real-world datasets guessing.

SynthHair dataset overview showing 4x and 16x zoom levels of fine hair strands and alpha mattes

What Problem Does This Paper Address?

Computer vision is getting great at segmenting objects at 4K resolution, except when it comes to hair. Unlike binary segmentation (where a pixel is strictly "object" or "background"), alpha matting estimates continuous opacity (from 0 to 1) to capture thin, translucent structures.

Even at 4K, individual hairs are often thinner than a single pixel. Hand-labeling 100,000 strands per head is a fool's errand, and Photoshop filters leave behind nasty artifacts on gray hair or complex backgrounds. Worse, you can't slip a green screen between a person's beard and their chin. Consequently, existing hair datasets are stuck at low resolutions (mostly $512 \times 512$) or rely on coarse, blocky masks, starving modern high-resolution architectures of the fine-grained ground truth they need.

Methods

To get ground-truth labels without human annotators losing their minds, the authors built a synthetic data pipeline and a new mathematical yardstick to measure its detail:

  • Unreal Engine + MetaHumans (New Application): Using MetaHuman Creator 1.1.0 and Unreal Engine 5.6, the authors simulated 43 digital humans with strand-based hair physics. To ensure variety, they randomized lighting, camera poses, skin/hair materials, and fitted facial rigs to real expressions from the AffectNet dataset. Because the engine knows the exact geometry of every strand, it renders continuous alpha mattes, 5-class hair categories, 3D growth direction vectors, and metric depth maps.
  • Soft Isoperimetric Inequality Quotient — SIPQ (Adapted Metric): How do you prove one dataset's labels are more intricate than another's? Standard geometry uses the Isoperimetric Quotient ($IPQ = \frac{L^2}{4\pi A}$, comparing perimeter squared to area), which only works on hard binary shapes. The authors adapt a continuous version—SIPQ—replacing perimeter with the sum of image gradient magnitudes and area with soft pixel intensities. This allows direct structural complexity comparisons between binary masks and soft alpha mattes across any scale.
  • H2M2 Baseline (Standard Architecture): To validate the data, they trained a Human Hair Matting Model (H2M2) based on the existing DAViD/DPT transformer architecture, utilizing a pre-trained DINOv2 backbone, compositing synthetic heads onto real backgrounds from a clothing/accessories dataset.
Figure 2: SynthHair Annotations. We provide multiple labels for each image. (a) Rendered RGBA image of the MetaHuman. (b) Alpha matte for facial hair. (c) Soft segmentation labels for the 5 hair categories: red: scalp hair, yellow: eyebrows, pink: eyelashes, green: mustache, and blue: beard. (d) 3D hair growth direction. The axes are encoded as red: towards the screen, green: to the right, and blue: up. (e) Depth map of the entire body.

Datasets

  • SynthHair (Introduced): 16,000 RGBA images (14.5k train / 1.5k test, split by identity) at $4096 \times 4096$ resolution. It is the first dataset to include all five major facial hair regions: scalp, eyebrows, eyelashes, mustache, and beard.
  • Comparison, Training & Evaluation Datasets: Models and label complexities were benchmarked against existing hair datasets (Figaro-1k, CelebAMask-HQ, K-Hairstyle, HiSa, synthetic Face Synthetics), portrait matting datasets (P3M-10k, HHM2K, PPM-100), and fine-detail segmentation datasets (DIS5K, ThinObject-5K). High-resolution qualitative and user tests also utilized HHM2K and synthetic Diffusion-4K images.

Key Insights and Ideas

  • High resolution $\neq$ high detail in human-labeled datasets: Portrait matting datasets like PPM-100 boast $\sim3000 \times 3000$ resolution, yet score a meager SIPQ of 9.73. Why? Scaling up a body silhouette mostly just stretches smooth edges, and human annotators gloss over sub-pixel frizz. Scaling up true hair mattes exposes exponential structural chaos—pushing SynthHair's SIPQ from 22.47 (at $512 \times 512$) all the way to 734.75 at 4K.
  • Synthetic beats real when real labels are noisy: Normally, synthetic-to-real domain gaps hurt performance. Here, a model trained purely on SynthHair generalizes better to the real-world Figaro-1k benchmark (90.4% mIoU) than models trained on real-world CelebAMask-HQ (88.2%) or HiSa (87.9%). Clean synthetic physics trumps messy human annotations.
Figure 3: Annotations sorted by SIPQ. We show a few randomly selected labels of hair segmentation and matting datasets ordered by their estimated SIPQ. Labels with low values on the left side consist of simple shapes, while annotations with high SIPQ on the right side show a high density of fine details. We also show examples of DIS5K [24], as it has highly detailed and fine annotations.

Key Results

  • 30x Finer Detail: SynthHair achieves an average SIPQ of 734.75, outstripping existing hair datasets (which cap out at 20.75 for Face Synthetics and 7.08 for HiSa) by more than an order of magnitude.
  • Resolution Matters for Training: Training H2M2 on 4K SynthHair vs. downsampled $512 \times 512$ SynthHair drops 4K test MSE from $0.0028$ to $0.0013$ and gradient error (GRAD) from $0.0398$ to $0.0106$.
  • Human Preference: In blind A/B testing on 4K real-world images (HHM2K), human raters preferred scalp mattes from the SynthHair-trained model 98% of the time over CelebAMask-HQ, 87% over HiSa, and 85% over Figaro-1k.

Limitations and Future Work

  • Metric Noise Sensitivity: Because SIPQ relies on image gradients, high-frequency aliasing or thresholding noise in binary masks can artificially inflate complexity scores (mitigated in SynthHair via multi-sample anti-aliasing and soft alpha mattes).
  • Wardrobe & Hairstyles: SynthHair lacks randomized 3D clothing and accessories. Even with 2D background compositing during training, models occasionally confuse furry collars or patterned headscarves for hair, and struggle slightly with underrepresented styles like intricate braids.
  • Future Directions: While this paper focused on 2D matting, the authors included 3D strand growth directions and metric depth maps specifically to unlock future work in single-image 3D hair reconstruction and strand geometry recovery.

Summary updated

BibTeX
@misc{karmann2026synthhair,
  author = {Markus Karmann and Shile Li and Qi Zhang and Peng-Tao Jiang and Bo Li and Puneet K. Dokania and Philip Torr and Onay Urfalioglu},
  title = {{SynthHair: Leveraging MetaHumans for a High-Quality 4K Hair Matting Dataset}},
  year = {2026},
  eprint = {2611.35303},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35303},
}
Figure