Abstract
Video harmonization aims to adjust the foreground of a composite video to match the background's appearance, ensuring visual consistency. However, the field has long been hindered by a lack of large-scale, high-quality datasets that capture realistic motion and temporal dynamics. We introduce HYouTube, the first publicly available large-scale dataset for video harmonization. By applying diverse 3D Lookup Tables (LUTs) to real-world video sequences, we generate 3,194 synthetic composite/ground-truth pairs alongside 100 real-world test cases. This dataset enables the development of models that prioritize temporal coherence, effectively addressing the "flickering" artifacts common in frame-by-frame harmonization methods.
Introduction
Video composition—the process of inserting a foreground object from one video into a different background—is a fundamental task in visual effects and content creation. A primary challenge is the visual mismatch between the foreground and background, often caused by differences in lighting, weather, or camera settings. While image harmonization has progressed significantly, applying these techniques to video on a frame-by-frame basis typically results in distracting temporal flickering.
To train deep learning models for video harmonization, large-scale paired datasets (comprising a "disharmonious" composite and its "harmonized" ground truth) are essential. Previous efforts relied on static images with simulated motion, which fails to represent the complexity of real-world video. HYouTube addresses this gap by providing a benchmark based on actual video sequences.
Dataset Construction Methodology
The authors employ an "inverse" approach to generate training data. Instead of attempting to harmonize a poorly matched composite, they start with high-quality real videos and intentionally degrade the foreground's appearance to create a synthetic composite.
Source Material and Color Transformation
The dataset utilizes the YouTube-VOS 2018 dataset as source material, which provides high-quality video sequences with accurate object masks. To create the appearance mismatch, the authors use 3D Lookup Tables (LUTs). LUTs offer a clean and controllable method for color remapping, avoiding the artifacts often introduced by traditional color transfer methods.
Ensuring Diversity
To prevent models from overfitting to specific color shifts, the authors curated a diverse set of 100 LUTs from an initial pool of over 400. Selection was based on an iterative algorithm maximizing the feature Mean Squared Error (fMSE) between transformations. Furthermore, strict filtering criteria were applied: the foreground must occupy at least 1% of the frame, the transformation must remain realistic, and the final composite must be clearly disharmonious with the background.
Benchmarks
The HYouTube release includes two distinct components:
- HYouTube (Synthetic): This core training set contains 3,194 pairs of synthetic composite videos and their original ground-truth versions. Each sample consists of 20 consecutive frames, providing sufficient temporal context for learning consistency.
- Real Composite Videos: To evaluate real-world generalization, the authors curated 100 videos by manually pasting foregrounds from matting datasets onto backgrounds from Vimeo-90k and other web sources.
Results and Qualitative Analysis
The dataset covers a wide variety of subjects and environmental conditions. Qualitative evaluations demonstrate that HYouTube captures complex deformations and natural motion that are absent in image-based datasets.
By providing 20-frame sequences, HYouTube allows researchers to implement and test temporal constraints. This is critical for mitigating the flickering artifacts that plague current video composition workflows. The diversity of the 100 LUTs ensures that models are exposed to a broad spectrum of lighting and color mismatches, from subtle temperature shifts to dramatic exposure changes.
Conclusion and Future Work
HYouTube represents a significant advancement for the video harmonization community, providing the first large-scale benchmark based on real video motion. While the current 20-frame sequences are a major step forward, future work may explore even longer sequences to ensure long-term temporal stability. Additionally, while the "inverse logic" of synthetic data generation is a standard proxy, future research could investigate ways to better model complex lighting interactions like shadows and reflections that occur in real-world physical compositions.
Summary updated