PTDiffusion: Free Lunch for Generating Optical Illusion Hidden Pictures with Phase-Transferred Diffusion Model

Xiang Gao, Shuai Yang, Jiaying Liu
3/1/2025
10 citations
diffusion-flow

No official code found. Best implementation: XiangGao1102/PTDiffusion (25 stars, Jupyter Notebook, MIT, last commit 2025-06-25).

Abstract

Optical illusion hidden picture is an interesting visual perceptual phenomenon where an image is cleverly integrated into another picture. Established on the off-the-shelf text-to-image (T2I) diffusion model, we propose a novel text-guided image-to-image (I2I) translation framework dubbed as Phase-Transferred Diffusion Model (PTDiffusion) for hidden art syntheses, which harmoniously embeds an input reference image into arbitrary scenes described by the text prompts.

Show full abstract

At the heart of our method is a plug-and-play phase transfer mechanism that dynamically and progressively transplants diffusion features’ phase spectrum from the denoising process to reconstruct the reference image into the one to sample the generated illusion image, realizing deep fusion of the reference structural information and the textual semantic information. Furthermore, we propose asynchronous phase transfer to enable flexible control over the degree of hidden content discernability. Our method bypasses any model training and fine-tuning process, all while substantially outperforming related methods in image quality, text fidelity, visual discernibility, and contextual naturalness for illusion picture synthesis, as demonstrated by extensive qualitative and quantitative experiments. Our project is publically available at this web page.

View on arXivView PDF

Code Implementations(1)

MIT

Official code of the paper "PTDiffusion: Free Lunch for Generating Optical Illusion Hidden Pictures with Phase-Transferred Diffusion Model"

252Jupyter Notebook, PythonMar 13, 20251 years agoMIT

Similar Papers

Cite this paper

@article{gao2025ptdiffusion,
  title  = {PTDiffusion: Free Lunch for Generating Optical Illusion Hidden Pictures with Phase-Transferred Diffusion Model},
  author = {Xiang Gao and Shuai Yang and Jiaying Liu},
  year   = {2025},
  eprint = {2503.06186},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.06186},
  journal = {CVPR 2025 2025}
}

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

Discussion