[Paper Review] High-Resolution Image Harmonization via Collaborative Dual Transformations
This paper proposes CDTNet, a novel end-to-end deep learning framework for high-resolution image harmonization that unifies pixel-to-pixel transformation and RGB-to-RGB transformation through collaborative dual learning. By combining a low-resolution U-Net generator, a learnable color mapping module with basis LUTs and a weight predictor, and a lightweight refinement module, CDTNet achieves state-of-the-art performance on high-resolution (up to 2048×2048) images with significantly reduced computational cost and memory usage.
Given a composite image, image harmonization aims to adjust the foreground to make it compatible with the background. High-resolution image harmonization is in high demand, but still remains unexplored. Conventional image harmonization methods learn global RGB-to-RGB transformation which could effortlessly scale to high resolution, but ignore diverse local context. Recent deep learning methods learn the dense pixel-to-pixel transformation which could generate harmonious outputs, but are highly constrained in low resolution. In this work, we propose a high-resolution image harmonization network with Collaborative Dual Transformation (CDTNet) to combine pixel-to-pixel transformation and RGB-to-RGB transformation coherently in an end-to-end network. Our CDTNet consists of a low-resolution generator for pixel-to-pixel transformation, a color mapping module for RGB-to-RGB transformation, and a refinement module to take advantage of both. Extensive experiments on high-resolution benchmark dataset and our created high-resolution real composite images demonstrate that our CDTNet strikes a good balance between efficiency and effectiveness. Our used datasets can be found in https://github.com/bcmi/CDTNet-High-Resolution-Image-Harmonization.
Motivation & Objective
- To address the lack of high-resolution image harmonization methods in deep learning, particularly for real-world composite images.
- To overcome the limitations of existing methods: low-resolution outputs from pixel-to-pixel networks and global tone mismatches from RGB-to-RGB transformations.
- To unify pixel-level and global color transformations in an end-to-end framework that preserves both local details and global consistency.
- To reduce computational and memory costs while maintaining high-quality harmonization on high-resolution images.
- To evaluate performance on a newly created high-resolution real composite image dataset.
Proposed method
- CDTNet employs a low-resolution U-Net generator that performs dense pixel-to-pixel transformation on downsampled inputs to preserve fine-grained local details.
- A color mapping module learns image-specific RGB-to-RGB transformations using shared basis LUTs and a learnable weight predictor derived from the U-Net encoder features.
- The weight predictor generates combination coefficients for the basis LUTs, enabling global color adjustment on high-resolution inputs without retraining.
- A lightweight refinement module fuses the low-resolution pixel-wise output, the high-resolution RGB-to-RGB result, the foreground mask, and upsampled decoder features using a blending layer.
- The refinement module uses concatenation and residual learning to enhance local details while preserving the global tone from the color mapping module.
- The entire network is trained end-to-end, with the low-resolution generator and color mapping module jointly optimized to improve harmonization quality.
Experimental results
Research questions
- RQ1Can deep learning-based RGB-to-RGB transformation be effectively learned and applied to high-resolution image harmonization?
- RQ2How can pixel-level and global color transformations be collaboratively combined to improve both local detail and global consistency in high-resolution harmonization?
- RQ3What is the optimal architecture for balancing computational efficiency and harmonization quality in high-resolution settings?
- RQ4Can a lightweight refinement module effectively enhance low-resolution outputs using high-resolution guidance without increasing memory or FLOP overhead?
- RQ5How does the proposed method compare to existing SOTA methods on real-world high-resolution composite images?
Key findings
- CDTNet achieves state-of-the-art performance on the HAdobe5k benchmark at 1024×1024 resolution, with a PSNR of 38.77 and SSIM of 152.13, outperforming prior methods.
- The ablation study confirms that removing any component—especially the refinement module’s blending layer—significantly degrades performance, proving their necessity.
- The model reduces FLOPs to under 200G and memory to under 20GB for 2048×2048 harmonization, compared to over 950G FLOPs and 20GB memory in prior SOTA methods.
- The use of a shared basis LUT with a learned weight predictor outperforms separate encoders or global pooling, showing the benefit of joint feature learning.
- User studies on 100 real high-resolution composite images confirm that CDTNet produces more visually plausible results than pix2pixHD and iS2AM.
- The method maintains high efficiency by restricting pixel-to-pixel learning to low-resolution and using a lightweight refinement module, enabling practical deployment.
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.