D2Styler: Advancing Arbitrary Style Transfer with Discrete Diffusion Methods

Onkar Susladkar, Gayatri Deshmukh, Sparsh Mittal, Parth Shastri
8/7/2024
cs.CVcs.AI

Official code: Onkarsus13/D2Styler (13 stars, Apache-2.0, last commit 2024-08-08).

Abstract

In image processing, one of the most challenging tasks is to render an image's semantic meaning using a variety of artistic approaches. Existing techniques for arbitrary style transfer (AST) frequently experience mode-collapse, over-stylization, or under-stylization due to a disparity between the style and content images. We propose a novel framework called D$^2$Styler (Discrete Diffusion Styler) that leverages the discrete representational capability of VQ-GANs and the advantages of discrete diffusion, including stable training and avoidance of mode collapse. Our method uses Adaptive Instance Normalization (AdaIN) features as a context guide for the reverse diffusion process. This makes it easy to move features from the style image to the content image without bias. The proposed method substantially enhances the visual quality of style-transferred images, allowing the combination of content and style in a visually appealing manner. We take style images from the WikiArt dataset and content images from the COCO dataset. Experimental results demonstrate that D$^2$Styler produces high-quality style-transferred images and outperforms twelve existing methods on nearly all the metrics. The qualitative results and ablation studies provide further insights into the efficacy of our technique. The code is available at https://github.com/Onkarsus13/D2Styler.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is an official implimentation of D2Styler

130Python, MakefileJul 9, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{susladkar2024dstyler,
  title  = {D2Styler: Advancing Arbitrary Style Transfer with Discrete Diffusion Methods},
  author = {Onkar Susladkar and Gayatri Deshmukh and Sparsh Mittal and Parth Shastri},
  year   = {2024},
  eprint = {2408.03558},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.03558v1}
}

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/2408.03558.svg)](https://codeofpaper.com/paper/2408.03558)

Discussion