TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Improving the Harmony of the Composite Image by Spatial-Se...

Improving the Harmony of the Composite Image by Spatial-Separated Attention Module

Xiaodong Cun, Chi-Man Pun

2019-07-15Image Harmonization
PaperPDFCode(official)

Abstract

Image composition is one of the most important applications in image processing. However, the inharmonious appearance between the spliced region and background degrade the quality of the image. Thus, we address the problem of Image Harmonization: Given a spliced image and the mask of the spliced region, we try to harmonize the "style" of the pasted region with the background (non-spliced region). Previous approaches have been focusing on learning directly by the neural network. In this work, we start from an empirical observation: the differences can only be found in the spliced region between the spliced image and the harmonized result while they share the same semantic information and the appearance in the non-spliced region. Thus, in order to learn the feature map in the masked region and the others individually, we propose a novel attention module named Spatial-Separated Attention Module (S2AM). Furthermore, we design a novel image harmonization framework by inserting the S2AM in the coarser low-level features of the Unet structure in two different ways. Besides image harmonization, we make a big step for harmonizing the composite image without the specific mask under previous observation. The experiments show that the proposed S2AM performs better than other state-of-the-art attention modules in our task. Moreover, we demonstrate the advantages of our model against other state-of-the-art image harmonization methods via criteria from multiple points of view. Code is available at https://github.com/vinthony/s2am

Results

TaskDatasetMetricValueModel
Image GenerationHAdobe5k(1024$\times$1024)MSE47.01S2AM
Image GenerationHAdobe5k(1024$\times$1024)PSNR35.68S2AM
Image GenerationHAdobe5k(1024$\times$1024)SSIM0.9784S2AM
Image GenerationHAdobe5k(1024$\times$1024)fMSE262.39S2AM

Related Papers

Gen-n-Val: Agentic Image Data Generation and Validation2025-06-05DISARM++: Beyond scanner-free harmonization2025-05-06Efficient and robust 3D blind harmonization for large domain gaps2025-04-30Learning to Harmonize Cross-vendor X-ray Images by Non-linear Image Dynamics Correction2025-04-14SceneBooth: Diffusion-based Framework for Subject-preserved Text-to-Image Generation2025-01-07HarmonyIQA: Pioneering Benchmark and Model for Image Harmonization Quality Assessment2025-01-02Retrieval Augmented Image Harmonization2024-12-18Image Harmonization using Robust Restricted CDF Matching2024-11-20