[Paper Review] Harmonizer: Learning to Perform White-Box Image and Video Harmonization
Harmonizer proposes a white-box, lightweight framework for image and video harmonization by regressing image-level filter arguments (e.g., brightness, contrast) instead of using black-box autoencoders. It achieves state-of-the-art performance with 56 fps at 1080P resolution and significantly faster inference than prior methods, while maintaining high fidelity and consistency across frames.
Recent works on image harmonization solve the problem as a pixel-wise image translation task via large autoencoders. They have unsatisfactory performances and slow inference speeds when dealing with high-resolution images. In this work, we observe that adjusting the input arguments of basic image filters, e.g., brightness and contrast, is sufficient for humans to produce realistic images from the composite ones. Hence, we frame image harmonization as an image-level regression problem to learn the arguments of the filters that humans use for the task. We present a Harmonizer framework for image harmonization. Unlike prior methods that are based on black-box autoencoders, Harmonizer contains a neural network for filter argument prediction and several white-box filters (based on the predicted arguments) for image harmonization. We also introduce a cascade regressor and a dynamic loss strategy for Harmonizer to learn filter arguments more stably and precisely. Since our network only outputs image-level arguments and the filters we used are efficient, Harmonizer is much lighter and faster than existing methods. Comprehensive experiments demonstrate that Harmonizer surpasses existing methods notably, especially with high-resolution inputs. Finally, we apply Harmonizer to video harmonization, which achieves consistent results across frames and 56 fps at 1080P resolution. Code and models are available at: https://github.com/ZHKKKe/Harmonizer.
Motivation & Objective
- To address the limitations of autoencoder-based image harmonization methods, including poor high-resolution performance, slow inference, and black-box nature.
- To investigate whether human-like image harmonization can be achieved through learnable, interpretable filter adjustments rather than pixel-wise translation.
- To design a lightweight, efficient, and stable framework that maintains visual consistency across frames for video harmonization.
- To improve filter argument prediction by addressing interdependence among filters and loss imbalance during training.
Proposed method
- Harmonizer frames image harmonization as an image-level regression problem, predicting filter arguments (e.g., brightness, contrast, color temperature) for white-box filters.
- It employs a cascade regressor that predicts filter arguments sequentially, reducing interference between interdependent filters.
- A dynamic loss strategy balances gradients across filters to prevent bias toward easier-to-learn filters and improves training stability.
- The framework uses a neural backbone with a regressor head to predict filter parameters, followed by efficient, differentiable white-box filters for image transformation.
- For video harmonization, an exponential moving average (EMA) strategy ensures temporal consistency across frames.
- The method avoids end-to-end training on pixel-level outputs, reducing model complexity and computational cost.
Experimental results
Research questions
- RQ1Can image harmonization be effectively modeled as a regression of human-used filter parameters rather than a pixel-wise translation task?
- RQ2How can interdependent filter parameters (e.g., brightness and contrast) be predicted more accurately in a cascaded manner?
- RQ3Can a dynamic loss strategy improve training stability and prevent bias toward specific filter types?
- RQ4How does the proposed method perform in high-resolution and real-time video harmonization scenarios?
- RQ5Can a white-box, filter-based approach achieve better visual quality and consistency than black-box autoencoders?
Key findings
- Harmonizer achieves a new state-of-the-art MSE of 24.26 on iHarmony4 at 256×256 resolution, surpassing prior methods by a significant margin.
- At 1080P resolution, Harmonizer achieves 56 fps inference speed on an RTX3090 GPU, outperforming prior autoencoder-based methods that achieve only ~10 fps.
- The ablation study confirms that both the cascade regressor and dynamic loss strategy are essential, improving PSNR by 0.89 dB and reducing MSE by 2.59 compared to baseline.
- User studies show Harmonizer achieves the highest B-T score (2.042) in video harmonization, significantly outperforming prior methods and even surpassing composite inputs.
- With 8 filters, Harmonizer achieves a PSNR of 38.06 and 51.9 fps at 1080P, demonstrating a strong trade-off between performance and speed.
- Visual results confirm that Harmonizer preserves image details better than autoencoder-based methods and avoids texture distortion.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.