Generating Non-Stationary Textures using Self-Rectification
Yang Zhou, Rongjun Xiao, Dani Lischinski, Daniel Cohen-Or, Hui Huang
TL;DR
The paper tackles non-stationary texture synthesis by enabling users to lazily edit a reference texture into a rough target and then applying a two-pass self-rectification using a pre-trained diffusion model with cross-image KV-injection to enforce global structure while preserving local reference details. The method comprises structure-preserving inversion and fine texture sampling, leveraging KV-injection during both inversion and sampling to transfer layout and texture from the reference and coarse edits from the target. It demonstrates strong qualitative performance against TexExp and GCD Loss, with data augmentation for directional textures and a practical runtime on 512×512 images, highlighting broad applicability to texture editing and even natural-image editing. This approach advances controllable, high-fidelity non-stationary texture synthesis by combining diffusion priors, attention-based feature transfer, and a practical lazy-editing workflow, offering a flexible tool for design and graphics applications.
Abstract
This paper addresses the challenge of example-based non-stationary texture synthesis. We introduce a novel twostep approach wherein users first modify a reference texture using standard image editing tools, yielding an initial rough target for the synthesis. Subsequently, our proposed method, termed "self-rectification", automatically refines this target into a coherent, seamless texture, while faithfully preserving the distinct visual characteristics of the reference exemplar. Our method leverages a pre-trained diffusion network, and uses self-attention mechanisms, to gradually align the synthesized texture with the reference, ensuring the retention of the structures in the provided target. Through experimental validation, our approach exhibits exceptional proficiency in handling non-stationary textures, demonstrating significant advancements in texture synthesis when compared to existing state-of-the-art techniques. Code is available at https://github.com/xiaorongjun000/Self-Rectification
