Training-and-Prompt-Free General Painterly Harmonization via Zero-Shot Disentenglement on Style and Content References
Abstract
Painterly image harmonization aims at seamlessly blending disparate visual elements within a single image. However, previous approaches often struggle due to limitations in training data or reliance on additional prompts, leading to inharmonious and content-disrupted output. To surmount these hurdles, we design a Training-and-prompt-Free General Painterly Harmonization method (TF-GPH). TF-GPH incorporates a novel “Similarity Disentangle Mask”, which disentangles the foreground content and background image by redirecting their attention to corresponding reference images, enhancing the attention mechanism for multi-image inputs. Additionally, we propose a “Similarity Reweighting” mechanism to balance harmonization between stylization and content preservation. This mechanism minimizes content disruption by prioritizing the content-similar features within the given background style reference. Finally, we address the deficiencies in existing benchmarks by proposing novel range-based evaluation metrics and a new benchmark to better reflect real-world applications. Extensive experiments demonstrate the efficacy of our method across benchmarks.
Cite
Text
Hsiao et al. "Training-and-Prompt-Free General Painterly Harmonization via Zero-Shot Disentenglement on Style and Content References." AAAI Conference on Artificial Intelligence, 2025. doi:10.1609/AAAI.V39I4.32368Markdown
[Hsiao et al. "Training-and-Prompt-Free General Painterly Harmonization via Zero-Shot Disentenglement on Style and Content References." AAAI Conference on Artificial Intelligence, 2025.](https://mlanthology.org/aaai/2025/hsiao2025aaai-training/) doi:10.1609/AAAI.V39I4.32368BibTeX
@inproceedings{hsiao2025aaai-training,
title = {{Training-and-Prompt-Free General Painterly Harmonization via Zero-Shot Disentenglement on Style and Content References}},
author = {Hsiao, Teng-Fang and Ruan, Bo-Kai and Shuai, Hong-Han},
booktitle = {AAAI Conference on Artificial Intelligence},
year = {2025},
pages = {3545-3553},
doi = {10.1609/AAAI.V39I4.32368},
url = {https://mlanthology.org/aaai/2025/hsiao2025aaai-training/}
}