mlsanityData to 14 Oct 2026

Painterly Image Harmonization using Diffusion Model

arXiv 2308.02228 ↗First posted 4 Aug 2023cs.CVcited by 12

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

  1. 2023Training-free Content Injection using h-space in Diffusion Models27 Mar
  2. 2023Cross-domain Compositing with Pretrained Diffusion Models20 Feb
  3. 2023T2I-Adapter: Learning Adapters to Dig out More Controllable Ability for Text-to-Image Diffusion Models16 Feb
  4. 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
  5. 2022Diffusion-based Image Translation using Disentangled Style and Content Representation30 Sep
  6. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec
  7. 2021Palette: Image-to-Image Diffusion Models10 Nov

Other references · 40

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  5. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  6. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  7. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  8. 2020Denoising Diffusion Implicit Modelscited by 9,781
  9. 2022Generative Adversarial Networkscited by 5,627
  10. 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,694
  11. 2017Arbitrary Style Transfer in Real-time with Adaptive Instance Normalizationcited by 2,010
  12. 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
28 more
  1. 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,430
  2. 2016Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Networkcited by 1,204
  3. 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 700
  4. 2013DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognitioncited by 424
  5. 2017Universal Style Transfer via Feature Transformscited by 354
  6. 2018Arbitrary Style Transfer with Style-Attentional Networkscited by 198
  7. 2016Precomputed Real-Time Texture Synthesis with Markovian Generative Adversarial Networkscited by 192
  8. 2021StyTr2: Image Style Transfer with Transformerscited by 187
  9. 2021AdaAttN: Revisit Attention Mechanism in Arbitrary Neural Style Transfercited by 178
  10. 2019Style Transfer by Relaxed Optimal Transport and Self-Similaritycited by 168
  11. 2017Demystifying Neural Style Transfercited by 152
  12. 2019DoveNet: Deep Image Harmonization via Domain Verificationcited by 135
  13. 2022Exact Feature Distribution Matching for Arbitrary Style Transfer and Domain Generalizationcited by 122
  14. 2021GAN-Control: Explicitly Controllable GANscited by 91
  15. 2019Improving the Harmony of the Composite Image by Spatial-Separated Attention Modulecited by 73
  16. 2021Region-aware Adaptive Instance Normalization for Image Harmonizationcited by 71
  17. 2017GP-GAN: Towards Realistic High-Resolution Image Blendingcited by 64
  18. 2021Making Images Real Again: A Comprehensive Survey on Deep Image Compositioncited by 63
  19. 2019Deep Image Blendingcited by 62
  20. 2021High-Resolution Image Harmonization via Collaborative Dual Transformationscited by 55
  21. 2015Learning a Discriminative Model for the Perception of Realism in Composite Imagescited by 52
  22. 2020BargainNet: Background-Guided Domain Translation for Image Harmonizationcited by 52
  23. 2022DCCF: Deep Comprehensible Color Filter Learning Framework for High-Resolution Image Harmonizationcited by 46
  24. 2021Spatial-Separated Curve Rendering Network for Efficient and High-Resolution Image Harmonizationcited by 25
  25. 2022SCS-Co: Self-Consistent Style Contrastive Learning for Image Harmonizationcited by 24
  26. 2018Deep Painterly Harmonizationcited by 19
  27. 2021Deep Image Harmonization by Bridging the Reality Gapcited by 11
  28. 2022Painterly Image Harmonization in Dual Domainscited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 4; 2024: 3; 2025: 4; 2026: 1.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Image Harmonization with Diffusion Model
  2. 2023Progressive Painterly Image Harmonization from Low-level Styles to High-level Styles
  3. 2025HarmonPaint: Harmonized Training-Free Diffusion Inpainting
  4. 2023Portrait Diffusion: Training-free Face Stylization with Chain-of-Painting
  5. 2024DiffHarmony: Latent Diffusion Model Meets Image Harmonization
  6. 2022Inversion-Based Style Transfer with Diffusion Models
  7. 2025Region-to-Region: Enhancing Generative Image Harmonization with Adaptive Regional Injection
  8. 2024PainterNet: Adaptive Image Inpainting with Actual-Token Attention and Diverse Mask Control