Saved in:
Bibliographic Details
Main Authors: Zhou, Pengfei, Feng, Fangxiang, Wang, Xiaojie
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2404.06139
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914745974521856
author Zhou, Pengfei
Feng, Fangxiang
Wang, Xiaojie
author_facet Zhou, Pengfei
Feng, Fangxiang
Wang, Xiaojie
contents Image harmonization, which involves adjusting the foreground of a composite image to attain a unified visual consistency with the background, can be conceptualized as an image-to-image translation task. Diffusion models have recently promoted the rapid development of image-to-image translation tasks . However, training diffusion models from scratch is computationally intensive. Fine-tuning pre-trained latent diffusion models entails dealing with the reconstruction error induced by the image compression autoencoder, making it unsuitable for image generation tasks that involve pixel-level evaluation metrics. To deal with these issues, in this paper, we first adapt a pre-trained latent diffusion model to the image harmonization task to generate the harmonious but potentially blurry initial images. Then we implement two strategies: utilizing higher-resolution images during inference and incorporating an additional refinement stage, to further enhance the clarity of the initially harmonized images. Extensive experiments on iHarmony4 datasets demonstrate the superiority of our proposed method. The code and model will be made publicly available at https://github.com/nicecv/DiffHarmony .
format Preprint
id arxiv_https___arxiv_org_abs_2404_06139
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DiffHarmony: Latent Diffusion Model Meets Image Harmonization
Zhou, Pengfei
Feng, Fangxiang
Wang, Xiaojie
Computer Vision and Pattern Recognition
Image harmonization, which involves adjusting the foreground of a composite image to attain a unified visual consistency with the background, can be conceptualized as an image-to-image translation task. Diffusion models have recently promoted the rapid development of image-to-image translation tasks . However, training diffusion models from scratch is computationally intensive. Fine-tuning pre-trained latent diffusion models entails dealing with the reconstruction error induced by the image compression autoencoder, making it unsuitable for image generation tasks that involve pixel-level evaluation metrics. To deal with these issues, in this paper, we first adapt a pre-trained latent diffusion model to the image harmonization task to generate the harmonious but potentially blurry initial images. Then we implement two strategies: utilizing higher-resolution images during inference and incorporating an additional refinement stage, to further enhance the clarity of the initially harmonized images. Extensive experiments on iHarmony4 datasets demonstrate the superiority of our proposed method. The code and model will be made publicly available at https://github.com/nicecv/DiffHarmony .
title DiffHarmony: Latent Diffusion Model Meets Image Harmonization
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2404.06139