PTDiffusion: Free Lunch for Generating Optical Illusion Hidden Pictures with Phase-Transferred Diffusion Model
Xiang Gao, Shuai Yang, Jiaying Liu
TL;DR
PTDiffusion addresses the challenge of generating optical illusion hidden pictures by translating a reference image into a text-guided scene while preserving recognizable structural cues. It introduces a training-free, plug-and-play Phase-Transferred Diffusion framework that performs phase-based fusion of reference structure with semantic prompts in the latent diffusion feature space, via inversion, reconstruction, and sampling trajectories. A phase transfer module transfers guidance-phase information through 2D FFT-based mixing, with a decayed blending schedule, and an asynchronous variant allows controllable hidden-content discernibility. The approach achieves state-of-the-art quality on illusion-picture synthesis without model training, improves text fidelity and visual naturalness, and provides flexible control over hidden-content visibility, demonstrated on diverse real and synthetic references. The method holds practical potential for artistic design, education, and content creation, and can be extended to other T2I backbones.
Abstract
Optical illusion hidden picture is an interesting visual perceptual phenomenon where an image is cleverly integrated into another picture in a way that is not immediately obvious to the viewer. Established on the off-the-shelf text-to-image (T2I) diffusion model, we propose a novel training-free text-guided image-to-image (I2I) translation framework dubbed as \textbf{P}hase-\textbf{T}ransferred \textbf{Diffusion} Model (PTDiffusion) for hidden art syntheses. PTDiffusion harmoniously embeds an input reference image into arbitrary scenes described by the text prompts, producing illusion images exhibiting hidden visual cues of the reference image. 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 in the diffusion model latent space. Furthermore, we propose asynchronous phase transfer to enable flexible control to the degree of hidden content discernability. Our method bypasses any model training and fine-tuning process, all while substantially outperforming related text-guided I2I methods in image generation 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 \href{https://xianggao1102.github.io/PTDiffusion_webpage/}{this web page}.
