All models

Harmonizer

Harmonizer predicts the arguments of six image filters that blend a pasted foreground into its background.

653 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (297 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
4.7M
Operations
653
Framework
PyTorch
Recurrent
No
Published
ECCV 2022
Cited by
71 (as of 24 October 2026)
Authors
Zhanghan Ke, Chunyi Sun, Lei Zhu and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17315
Graph hash
b36a86cfcf03902a4c26e5fb2c7a682f0ab5ed95c08ccdbebe83fb8c5825b5e3
Skeleton hash
75b30f8e322b8730de6fb5b572eba7a72b5ebc2eba1996b08656787f79e0e868
Architecture hash
e0ab03c52c6eb6c961acbe1f0c923de47e215268ceeb5ab4f280d35cd54f465b
Diagram SHA-256
50195a3360f175b23a42dac648a2aa73d1301fb2196c90622175ba72c0ff446a
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Harmonizer performs image harmonization: when a foreground is composited onto a new background, it removes the inconsistent appearance between the two. Earlier deep methods, the paper says, treat this as pixel-wise image translation with autoencoders. Harmonizer instead frames it as an image-level regression problem, in which a neural network predicts filter arguments and several white-box filters apply them.

The design follows a user study in which 5 experts from the image editing field processed composite images with Photoshop. The network takes the composite image and its foreground mask, downsampled to 256 × 256, and uses an EfficientNet-B0 backbone. A cascade regressor then predicts each filter argument, using the features of the preceding arguments as conditions. Six filters run in sequence: brightness, contrast, saturation, color temperature, highlight, and shadow. The background pixels are not changed.

The paper reports that Harmonizer outperformed prior methods on the iHarmony4 benchmark, and that for video it reached 56 fps at 1080P resolution on a RTX3090 GPU. It also names a limitation: the model may fail to handle color-specific appearance inconsistency or different lighting conditions between the foreground and background.

Key idea. Harmonizer recasts image harmonization as image-level regression, with a network that predicts the arguments of white-box image filters instead of translating pixels with an autoencoder.

  • harmonizer
  • image harmonization
  • video harmonization
  • white-box harmonization
  • white-box image filters
  • filter argument regression
  • composite image
  • high-resolution harmonization
  • iharmony4

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ke2022harmonizerlearningperformwhitebox,
      title={Harmonizer: Learning to Perform White-Box Image and Video Harmonization}, 
      author={Zhanghan Ke and Chunyi Sun and Lei Zhu and Ke Xu and Rynson W. H. Lau},
      year={2022},
      eprint={2207.01322},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2207.01322}, 
}