Skip to main content
QUICK REVIEW

[Paper Review] Spatial-Separated Curve Rendering Network for Efficient and High-Resolution Image Harmonization

Jingtang Liang, Xiaodong Cun|arXiv (Cornell University)|Sep 13, 2021
Advanced Vision and ImagingComputer Science41 references5 citations
TL;DR

This paper proposes S2CRNet, a novel spatial-separated curve rendering network for efficient, high-resolution image harmonization that models color adjustment as global curve parameter learning rather than pixel-wise translation. By extracting spatial-specific features from foreground and background thumbnails and using a curve rendering module to generate piecewise linear curves, the method achieves state-of-the-art performance with over 90% fewer parameters and inference in under 0.1 seconds at 2048×2048 resolution.

ABSTRACT

Image harmonization aims to modify the color of the composited region with respect to the specific background. Previous works model this task as a pixel-wise image-to-image translation using UNet family structures. However, the model size and computational cost limit the ability of their models on edge devices and higher-resolution images. To this end, we propose a novel spatial-separated curve rendering network(S$^2$CRNet) for efficient and high-resolution image harmonization for the first time. In S$^2$CRNet, we firstly extract the spatial-separated embeddings from the thumbnails of the masked foreground and background individually. Then, we design a curve rendering module(CRM), which learns and combines the spatial-specific knowledge using linear layers to generate the parameters of the piece-wise curve mapping in the foreground region. Finally, we directly render the original high-resolution images using the learned color curve. Besides, we also make two extensions of the proposed framework via the Cascaded-CRM and Semantic-CRM for cascaded refinement and semantic guidance, respectively. Experiments show that the proposed method reduces more than 90% parameters compared with previous methods but still achieves the state-of-the-art performance on both synthesized iHarmony4 and real-world DIH test sets. Moreover, our method can work smoothly on higher resolution images(eg., $2048 imes2048$) in 0.1 seconds with much lower GPU computational resources than all existing methods. The code will be made available at \url{http://github.com/stefanLeong/S2CRNet}.

Motivation & Objective

  • Address the inefficiency and high computational cost of existing UNet-based image harmonization models on high-resolution and edge devices.
  • Overcome the limitations of pixel-wise prediction in deep learning models that scale poorly with image resolution.
  • Enable real-time, high-resolution image harmonization by rethinking the task as global curve parameter learning instead of per-pixel adjustment.
  • Introduce a transparent, editable framework where learned color curves can be manually fine-tuned for user control.
  • Extend the framework with cascaded and semantic guidance for improved refinement and domain-aware harmonization.

Proposed method

  • Extract spatial-separated global features from low-resolution thumbnails of the foreground and background using a shared pre-trained backbone (e.g., SqueezeNet or VGG16).
  • Apply separate linear projections to foreground and background features to learn region-specific embeddings.
  • Combine the two embeddings to generate parameters for a piecewise linear color curve function in each RGB channel.
  • Directly render the original high-resolution foreground using the learned curve parameters, bypassing pixel-wise prediction.
  • Introduce Cascaded-CRM for multi-stage refinement by predicting multiple curve parameters in sequence.
  • Introduce Semantic-CRM that incorporates class-aware semantic embeddings to guide curve learning based on foreground category.

Experimental results

Research questions

  • RQ1Can image harmonization be effectively modeled as a global curve parameter learning problem rather than a pixel-wise image-to-image translation?
  • RQ2Can a curve-based rendering approach achieve state-of-the-art performance while drastically reducing model size and inference cost?
  • RQ3How does the proposed method perform on high-resolution images (e.g., 2048×2048) compared to existing methods in terms of speed and computational efficiency?
  • RQ4Can the inclusion of cascaded and semantic guidance improve harmonization quality and generalization to novel backgrounds or objects?
  • RQ5How sensitive is performance to the number of curve levels (L) in the piecewise linear approximation?

Key findings

  • S2CRNet reduces model parameters by over 90% compared to previous SOTA methods while maintaining or improving performance on both iHarmony4 and DIH datasets.
  • The method achieves inference in under 0.1 seconds at 2048×2048 resolution, with only 0.61 G MACS, significantly outperforming prior methods in speed and computational efficiency.
  • The ablation study shows that using L=64 curve levels offers the best trade-off, as increasing L beyond 64 yields minimal performance gains and may degrade results on iHarmony.
  • Quantitative comparison confirms that the piecewise linear curve (Ours) outperforms alternatives like Zero-DCE and 3DLUT across all metrics (MSE↓, PSNR↑, SSIM↑) on HCOCO and iHarmony.
  • The cascaded-CRM enables progressive refinement, producing visibly better harmonization results through multiple curve predictions.
  • The method generalizes well to novel backgrounds, as demonstrated by successful harmonization of a new background with a previously unseen foreground.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.