DucoNet
An image harmonization U-Net whose decoder features are adjusted by control codes from the L, a and b channels.
Diffusion and generative · 611 operations Checked
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
- 7.6M
- Operations
- 611
- Framework
- PyTorch
- Recurrent
- No
- Published
- ACM MM 2023
- Cited by
- 23 (as of 28 October 2026)
- Authors
- Linfeng Tan, Jiangtong Li, Li Niu, Liqing Zhang
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m16214
- Graph hash
- 0bb421b430a2f8d40d7ef82575244cce883c39c3ce915b3b24f165fafa3ff18d
- Skeleton hash
- 54ef1f77d16535bc858925876bcf282b2618bce3c9408dd17dbea17a61d317af
- Architecture hash
- f5d52b33481795adb0eb838399e6d422c18f793685b6bc609ad706fb18178511
- Diagram SHA-256
- 46757fcc1dd01bf7666be2739f130a26f88e2aa290787d5b00278f60710be5ce
- 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
DucoNet is an image harmonization network: it adjusts the appearance of the foreground in a composite image so that it is consistent with the background. The paper argues that existing methods mostly work in the correlated RGB color space, which leads to entangled features, while a decorrelated space such as Lab provides disentangled color and illumination statistics.
The network has three parts: an RGB harmonization backbone, a Lab encoding module and a Lab control module. For the backbone the authors chose iSSAM, a U-Net with four encoder layers and three decoder layers. Three encoders extract three control codes independently from the L, a and b channels, and the control module uses these codes to manipulate the decoder features of the backbone. Each control code generates dynamic convolution kernels that are applied to the foreground region of the decoder feature maps, a design the paper says was inspired by StyleGANv2.
The authors also tried the Lab color space in the backbone itself and report that the results were compromised, so the backbone stays in RGB. The repository reports results on the iHarmony4 dataset at image size 256 by 256 and on the HAdobe5k dataset at 1024 by 1024.
Key idea. The paper supplements an RGB harmonization backbone with control codes extracted separately from the L, a and b channels, which adjust the backbone's decoder features.
- duconet
- dual color space network
- image harmonization
- deep image harmonization
- dual color spaces
- lab color space
- image composition
- iharmony4
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{tan2023deepimageharmonizationdual,
title={Deep Image Harmonization in Dual Color Spaces},
author={Linfeng Tan and Jiangtong Li and Li Niu and Liqing Zhang},
year={2023},
eprint={2308.02813},
archivePrefix={arXiv},
primaryClass={cs.CV},
doi={https://doi.org/10.1145/3581783.3612404},
url={https://arxiv.org/abs/2308.02813},
}