Hierarchical Dynamic Image Harmonization
Haoxing Chen, Zhangxuan Gu, Yaohui Li, Jun Lan, Changhua Meng, Weiqiang Wang, Huaxiong Li
Abstract
Image harmonization is a critical task in computer vision, which aims to adjust the foreground to make it compatible with the background. Recent works mainly focus on using global transformations (i.e., normalization and color curve rendering) to achieve visual consistency. However, these models ignore local visual consistency and their huge model sizes limit their harmonization ability on edge devices. In this paper, we propose a hierarchical dynamic network (HDNet) to adapt features from local to global view for better feature transformation in efficient image harmonization. Inspired by the success of various dynamic models, local dynamic (LD) module and mask-aware global dynamic (MGD) module are proposed in this paper. Specifically, LD matches local representations between the foreground and background regions based on semantic similarities, then adaptively adjust every foreground local representation according to the appearance of its 𝐾-nearest neighbor background regions. In this way, LD can produce more realistic images at a more fine-grained level, and simultaneously enjoy the characteristic of semantic alignment. The MGD effectively applies distinct convolution to the foreground and background, learning the representations of foreground and background regions as well as their correlations to the global harmonization, facilitating local visual consistency for the images much more efficiently. Experimental results demonstrate that the proposed HDNet significantly reduces the total model parameters by more than 80% compared to previous methods, while still attaining state-of-the-art performance on the popular iHarmony4 dataset. Additionally, we introduced a lightweight version of HDNet, i.e., HDNet-lite, which has only 0.65MB parameters, yet it still achieved competitive performance. Our code is avaliable in https://github.com/chenhaoxing/HDNet.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers6
- Zero-shot Image Editing with Reference ImitationXi Chen, Yutong Feng, Mengting Chen, Yiyang Wang et al.NeurIPS 2024 · 80 citations
- DiffUTE: Universal Text Editing Diffusion ModelHaoxing Chen, Zhuoer Xu, Zhangxuan Gu, Jun Lan et al.NeurIPS 2023 · 61 citations
- Deep Image Harmonization in Dual Color SpacesLinfeng Tan, Jiangtong Li, Li Niu, Liqing ZhangACM MM 2023 · 21 citations
- Training-and-Prompt-Free General Painterly Harmonization via Zero-Shot Disentenglement on Style and Content ReferencesTeng-Fang Hsiao, Bo-Kai Ruan, Hong-Han ShuaiAAAI 2025 · 6 citations
- AnyDoor: Zero-shot Object-level Image CustomizationXi Chen, Lianghua Huang, Yu Liu, Yujun Shen et al.CVPR 2024
Builds on14
- EditGAN: High-Precision Semantic Image EditingHuan Ling, Karsten Kreis, Daiqing Li, Seung Wook Kim et al.NeurIPS 2021 · 248 citations
- Dynamic Instance Normalization for Arbitrary Style TransferYongcheng Jing, Xiao Liu, Yukang Ding, Xinchao Wang et al.AAAI 2020 · 212 citations
- Image Harmonization with TransformerZonghui Guo, Dongsheng Guo, Haiyong Zheng, Zhaorui Gu et al.ICCV 2021 · 95 citations
- High-Resolution Image Harmonization via Collaborative Dual TransformationsWenyan Cong, Xinhao Tao, Li Niu, Jing Liang et al.CVPR 2022 · 86 citations
- SCS-Co: Self-Consistent Style Contrastive Learning for Image HarmonizationYucheng Hang, Bin Xia, Wenming Yang, Qingmin LiaoCVPR 2022 · 49 citations
Related papers
- Learning Global-aware Kernel for Image HarmonizationXintian Shen, Jiangning Zhang, Jun Chen, Shipeng Bai et al.ICCV 2023 · 14 citations
- FRIH: Fine-Grained Region-Aware Image HarmonizationJinlong Peng, Zekun Luo, Liang Liu, Boshen ZhangAAAI 2024 · 18 citations
- Region-Aware Adaptive Instance Normalization for Image HarmonizationJun Ling, Han Xue, Li Song, Rong Xie et al.CVPR 2021
- PCT-Net: Full Resolution Image Harmonization Using Pixel-Wise Color TransformationsJulian Jorge Andrade Guerreiro, Mitsuru Nakazawa, Björn StengerCVPR 2023
- Deep Image Harmonization with Learnable AugmentationLi Niu, Junyan Cao, Wenyan Cong, Liqing ZhangICCV 2023 · 13 citations
