Painterly Image Harmonization using Diffusion Model
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Painterly image harmonization aims to insert photographic objects into paintings and obtain artistically coherent composite images. Previous methods for this task mainly rely on inference optimization or generative adversarial network, but they are either very time-consuming or struggling at fine control of the foreground objects (e.g., texture and content details). To address these issues, we propose a novel Painterly Harmonization stable Diffusion model (PHDiffusion), which includes a lightweight adaptive encoder and a Dual Encoder Fusion (DEF) module. Specifically, the adaptive encoder and the DEF module first stylize foreground features within each encoder. Then, the stylized foreground features from both encoders are combined to guide the harmonization process. During training, besides the noise loss in diffusion model, we additionally employ content loss and two style losses, i.e., AdaIN style loss and contrastive style loss, aiming to balance the trade-off between style migration and content preservation. Compared with the state-of-the-art models from related fields, our PHDiffusion can stylize the foreground more sufficiently and simultaneously retain finer content. Our code and model are available at https://github.com/bcmi/PHDiffusion-Painterly-Image-Harmonization.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 47 of its 64 references that are in the map. First posted on arXiv 4 Aug 2023.
Builds on
47 of 64 references.
Closest ancestors · 7
Same direction, newest first
- 2023Training-free Content Injection using h-space in Diffusion Models27 Mar
- 2023Cross-domain Compositing with Pretrained Diffusion Models20 Feb
- 2023T2I-Adapter: Learning Adapters to Dig out More Controllable Ability for Text-to-Image Diffusion Models16 Feb
- 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
- 2022Diffusion-based Image Translation using Disentangled Style and Content Representation30 Sep
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec
- 2021Palette: Image-to-Image Diffusion Models10 Nov
Other references · 40
- 2017Attention Is All You Needcited by 60,361
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2020Denoising Diffusion Implicit Modelscited by 9,781
- 2022Generative Adversarial Networkscited by 5,627
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,694
- 2017Arbitrary Style Transfer in Real-time with Adaptive Instance Normalizationcited by 2,010
- 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
28 more
- 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,430
- 2016Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Networkcited by 1,204
- 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 700
- 2013DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognitioncited by 424
- 2017Universal Style Transfer via Feature Transformscited by 354
- 2018Arbitrary Style Transfer with Style-Attentional Networkscited by 198
- 2016Precomputed Real-Time Texture Synthesis with Markovian Generative Adversarial Networkscited by 192
- 2021StyTr2: Image Style Transfer with Transformerscited by 187
- 2021AdaAttN: Revisit Attention Mechanism in Arbitrary Neural Style Transfercited by 178
- 2019Style Transfer by Relaxed Optimal Transport and Self-Similaritycited by 168
- 2017Demystifying Neural Style Transfercited by 152
- 2019DoveNet: Deep Image Harmonization via Domain Verificationcited by 135
- 2022Exact Feature Distribution Matching for Arbitrary Style Transfer and Domain Generalizationcited by 122
- 2021GAN-Control: Explicitly Controllable GANscited by 91
- 2019Improving the Harmony of the Composite Image by Spatial-Separated Attention Modulecited by 73
- 2021Region-aware Adaptive Instance Normalization for Image Harmonizationcited by 71
- 2017GP-GAN: Towards Realistic High-Resolution Image Blendingcited by 64
- 2021Making Images Real Again: A Comprehensive Survey on Deep Image Compositioncited by 63
- 2019Deep Image Blendingcited by 62
- 2021High-Resolution Image Harmonization via Collaborative Dual Transformationscited by 55
- 2015Learning a Discriminative Model for the Perception of Realism in Composite Imagescited by 52
- 2020BargainNet: Background-Guided Domain Translation for Image Harmonizationcited by 52
- 2022DCCF: Deep Comprehensible Color Filter Learning Framework for High-Resolution Image Harmonizationcited by 46
- 2021Spatial-Separated Curve Rendering Network for Efficient and High-Resolution Image Harmonizationcited by 25
- 2022SCS-Co: Self-Consistent Style Contrastive Learning for Image Harmonizationcited by 24
- 2018Deep Painterly Harmonizationcited by 19
- 2021Deep Image Harmonization by Bridging the Reality Gapcited by 11
- 2022Painterly Image Harmonization in Dual Domainscited by 11
Built on by
Citing papers per year: 2023: 4; 2024: 3; 2025: 4; 2026: 1.
12 papers.
- 2023Relightful Harmonization: Lighting-aware Portrait Background Replacementcited by 57
- 2025Does FLUX Already Know How to Perform Physically Plausible Image Composition?cited by 32
- 2024Diffusion-Based Visual Art Creation: A Survey and New Perspectivescited by 17
- 2024Anything in Any Scene: Photorealistic Video Object Insertioncited by 9
- 2023FreePIH: Training-Free Painterly Image Harmonization with Diffusion Modelcited by 8
- 2023X-Dreamer: Creating High-quality 3D Content by Bridging the Domain Gap Between Text-to-2D and Text-to-3D Generationcited by 7
- 2025HarmonyIQA: Pioneering Benchmark and Model for Image Harmonization Quality Assessmentcited by 7
- 2025DreamInsert: Zero-Shot Image-to-Video Object Insertion from A Single Imagecited by 6
- 2025MTADiffusion: Mask Text Alignment Diffusion Model for Object Inpaintingcited by 1
- 2023Painterly Image Harmonization via Adversarial Residual Learningcited by 0
- 2024Harmonizing Attention: Training-free Texture-aware Geometry Transfercited by 0
- 2026Chameleon: Style-Content Disentangled Framework for Cross-Domain Object Compositingcited by 0
- 2026Chameleon: Style-Content Disentangled Framework for Cross-Domain Object Compositing31 May 2026
- 2025Does FLUX Already Know How to Perform Physically Plausible Image Composition?25 Sep 2025
- 2025MTADiffusion: Mask Text Alignment Diffusion Model for Object Inpainting30 Jun 2025
- 2025DreamInsert: Zero-Shot Image-to-Video Object Insertion from A Single Image13 Mar 2025
- 2025HarmonyIQA: Pioneering Benchmark and Model for Image Harmonization Quality Assessment2 Jan 2025
- 2024Diffusion-Based Visual Art Creation: A Survey and New Perspectives22 Aug 2024
- 2024Harmonizing Attention: Training-free Texture-aware Geometry Transfer19 Aug 2024
- 2024Anything in Any Scene: Photorealistic Video Object Insertion30 Jan 2024
- 2023Relightful Harmonization: Lighting-aware Portrait Background Replacement11 Dec 2023
- 2023X-Dreamer: Creating High-quality 3D Content by Bridging the Domain Gap Between Text-to-2D and Text-to-3D Generation30 Nov 2023
- 2023FreePIH: Training-Free Painterly Image Harmonization with Diffusion Model25 Nov 2023
- 2023Painterly Image Harmonization via Adversarial Residual Learning15 Nov 2023
Similar, not cited
Close in wording, no citation either way
- 2023Image Harmonization with Diffusion Model
- 2023Progressive Painterly Image Harmonization from Low-level Styles to High-level Styles
- 2025HarmonPaint: Harmonized Training-Free Diffusion Inpainting
- 2023Portrait Diffusion: Training-free Face Stylization with Chain-of-Painting
- 2024DiffHarmony: Latent Diffusion Model Meets Image Harmonization
- 2022Inversion-Based Style Transfer with Diffusion Models
- 2025Region-to-Region: Enhancing Generative Image Harmonization with Adaptive Regional Injection
- 2024PainterNet: Adaptive Image Inpainting with Actual-Token Attention and Diverse Mask Control