Zero-Shot Contrastive Loss for Text-Guided Diffusion Image Style Transfer

Serin Yang, Hyunmin Hwang, Jong Chul Ye
3/15/2023
cs.CVcs.AIcs.LG

No official code found. Best implementation: YSerin/ZeCon (76 stars, MIT, last commit 2024-01-04). 1 more below.

Abstract

Diffusion models have shown great promise in text-guided image style transfer, but there is a trade-off between style transformation and content preservation due to their stochastic nature. Existing methods require computationally expensive fine-tuning of diffusion models or additional neural network. To address this, here we propose a zero-shot contrastive loss for diffusion models that doesn't require additional fine-tuning or auxiliary networks. By leveraging patch-wise contrastive loss between generated samples and original image embeddings in the pre-trained diffusion model, our method can generate images with the same semantic content as the source image in a zero-shot manner. Our approach outperforms existing methods while preserving content and requiring no additional training, not only for image style transfer but also for image-to-image translation and manipulation. Our experimental results validate the effectiveness of our proposed method.

View on arXivView PDF

Code Implementations(2)

YSerin/ZeConCommunity100%
MIT
7610Python, Jupyter NotebookApr 12, 20232 years agoMIT

Implementation of Zero-Shot Contrastive Loss for Text-Guided Diffusion Image Style Transfer.

243PythonMar 3, 20232 years ago
clipdiffusion-modelsstyle-transfer

Similar Papers

Cite this paper

@article{yang2023zeroshot,
  title  = {Zero-Shot Contrastive Loss for Text-Guided Diffusion Image Style Transfer},
  author = {Serin Yang and Hyunmin Hwang and Jong Chul Ye},
  year   = {2023},
  eprint = {2303.08622},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.08622v2},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.08622.svg)](https://codeofpaper.com/paper/2303.08622)

Discussion