Guardians of the Hair: Rescuing Soft Boundaries in Depth, Stereo, and Novel Views

Xiang Zhang, Yang Zhang, Lukas Mehl, Markus Gross, Christopher Schroers

TL;DR

Current 3D vision models frequently fail at "soft boundaries"—complex, semi-transparent structures like hair, fur, or fine branches—resulting in detached geometry and blurred textures. HairGuard solves this by introducing a plug-and-play depth fixer trained on image matting datasets, paired with a generative scene painter and a color fuser. This framework significantly improves monocular depth estimation, stereo conversion, and novel view synthesis without sacrificing global scene structure.

What Problem Does This Paper Address?

Whether rendering a digital character or reconstructing a real-world scene, capturing fine details like hair is notoriously difficult for 3D computer vision. Pixels at the edges of hair contain a mixture of foreground and background colors. This ambiguity causes state-of-the-art monocular depth estimators to produce broken or detached depth maps around fine structures.

Furthermore, generative models used for novel view synthesis often operate in compressed latent spaces, which inherently discards high-frequency details. This leads to texture degradation, blurring, or "hallucinated" artifacts where the hair meets the background.

Figure 1. Our Mission. The Guardians of the Hair (HairGuard) aim to rescue soft boundary details, e.g., thin hairs, where foreground and background are mixed in the observed color. Previous state-of-the-art approaches often suffer from missing details (see depth estimation results), degraded texture (see stereo results, displayed in anaglyph), and inconsistent geometry (see novel views) in soft boundaries. In contrast, HairGuard preserves fine-grained soft boundary details and demonstrates strong performance across diverse tasks.

Methods

HairGuard addresses these challenges through a three-stage pipeline that can be integrated with existing foundation models:

  1. Depth Fixer: To avoid retraining massive depth models from scratch, the authors designed a plug-and-play refinement network. It extracts semantic features using DINOv2 and DPT, alongside local structural features via a U-Net guided by Sobel edge maps. Crucially, a gated residual module predicts a mask that restricts depth corrections only to soft boundary regions, leaving the rest of the correct global depth map untouched.
  2. Generative Scene Painter: For view synthesis, the refined depth map is used to forward-warp the image to a new viewpoint. To fill the resulting disoccluded "holes" and remove background bleeding, a video diffusion model (Wan2.1) acts as a scene painter to synthesize realistic backgrounds.
  3. Color Fuser: Because diffusion models can hallucinate textures, the color fuser uses a pre-trained Variational Auto-Encoder (VAE) equipped with a dual skip module. This module injects high-fidelity features from the original warped image directly into the VAE decoder, blending the sharp details of the warped image with the seamless background of the inpainted image.
Figure 3. HairGuard pipeline. Given an input image and its es- timated depth, we first design a depth fixer to refine depth predic- tions around soft boundary regions. The fixed depth is then used for forward warping to generate preliminary novel views, which are fed into the scene painter for disocclusion inpainting. Finally, our color fuser adaptively combines the warped and inpainted re- sults to produce geometrically and visually consistent novel views.

Novel Data Curation

High-quality 3D datasets with ground-truth hair depth do not exist. To train HairGuard, the authors cleverly repurposed 2D image matting datasets. By thresholding alpha mattes (opacity maps), they synthesized realistic training pairs with broken depth maps in soft boundary regions to teach the Depth Fixer exactly where and how to correct errors.

Datasets

  • Foreground/Matting Datasets (Training): AM-2K, Distinctions-646, and Composition-1K.
  • Background/Multi-View Datasets (Training): RealEstate10K and DL3DV-10K.
  • Zero-Shot Depth Benchmarks (Evaluation): NYUv2, KITTI, ETH3D, ScanNet, and DIODE.
  • Natural Image Matting Benchmarks (Evaluation): AIM-500 and P3M-10K.
  • Marvel-10K (New Dataset): The authors introduced this dataset, consisting of 501 stereo videos (12,525 stereo pairs) extracted from Marvel movies, specifically chosen to evaluate cinematic scenes and complex hair structures.

Key Insights and Ideas

  • Matting as a Proxy for 3D Detail: The core "aha moment" is realizing that 2D image matting datasets—traditionally used for green-screen effects—contain the exact high-frequency boundary information missing from 3D datasets.
  • Surgical Depth Refinement: Instead of globally altering depth maps (which often degrades overall accuracy), the gated residual mechanism acts as a precision tool, isolating and fixing only the fuzzy boundaries.
  • Bypassing Latent Compression: By using a dual-skip architecture in the VAE color fuser, the model bypasses the typical blurriness introduced by latent diffusion models, successfully preserving pixel-level hair strands.

Key Results

  • Depth Boundary Accuracy: When integrated with state-of-the-art models like Depth Pro and Depth Anything V2, HairGuard drastically improved edge precision (EP). For example, adding the Depth Fixer to Depth Pro boosted its EP on the AIM-500 dataset from 15.92% to 35.01%.
  • Zero-Shot Generalization: On standard benchmarks like NYUv2 and KITTI, the Depth Fixer maintained or slightly improved the base models' performance, proving it fixes details without harming global geometry.
  • Stereo Image/Video Conversion: On the challenging Marvel-10K dataset, HairGuard outperformed top competitors (including SplatDiff and StereoCrafter) across all major metrics, including PSNR, LPIPS, and Stereo Intersection-over-Union (SIoU).
Figure 2. Soft boundaries. Existing depth estimation methods often struggle to capture accurate depth in soft boundaries, result- ing in discontinuous depth (red box) and broken boundaries (green box). DAv2, DPro, and UDv2 represent Depth Anything V2 [67], Depth Pro [4], and UniDepthV2 [38], respectively.

Limitations and Future Work

  • Simplified Foreground Motion: During data curation for view synthesis, foreground motion is simulated using simple 2D translational motion within the image plane. While background camera motion is complex, incorporating true 3D foreground deformation could make the model more robust.
  • Pipeline Complexity: The multi-stage nature of the framework (Depth Fixer $\rightarrow$ Warping $\rightarrow$ Scene Painter $\rightarrow$ Color Fuser) introduces computational overhead, making real-time deployment a challenge for future optimization.

Summary updated

BibTeX
@inproceedings{zhang2026guardians,
  author = {Xiang Zhang and Yang Zhang and Lukas Mehl and Markus Gross and Christopher Schroers},
  title = {{Guardians of the Hair: Rescuing Soft Boundaries in Depth, Stereo, and Novel Views}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Zyl0dta8bw},
}
Figure