paper-with-me

홈 › Papers

Patch-Based Stochastic Attention for Image Editing

2022-02-07 · Nicolas Cherel, Andrés Almansa, Yann Gousseau, Alasdair Newson

Attention mechanisms have become of crucial importance in deep learning in recent years. These non-local operations, which are similar to traditional patch-based methods in image processing, complement local convolutions. However, computing the full attention matrix is an expensive step with heavy memory and computational loads. These limitations curb network architectures and performances, in particular for the case of high resolution images. We propose an efficient attention layer based on the stochastic algorithm PatchMatch, which is used for determining approximate nearest neighbors. We refer to our proposed layer as a "Patch-based Stochastic Attention Layer" (PSAL). Furthermore, we propose different approaches, based on patch aggregation, to ensure the differentiability of PSAL, thus allowing end-to-end training of any network containing our layer. PSAL has a small memory footprint and can therefore scale to high resolution images. It maintains this footprint without sacrificing spatial precision and globality of the nearest neighbors, which means that it can be easily inserted in any level of a deep architecture, even in shallower levels. We demonstrate the usefulness of PSAL on several image editing tasks, such as image inpainting, guided image colorization, and single-image super-resolution. Our code is available at: https://github.com/ncherel/psal

📄 PDF Abstract BibTeX arXiv:2202.03163

Code (1)

ncherel/psal 공식 구현 pytorch

Tasks

ColorizationImage ColorizationImage InpaintingImage Super-ResolutionSuper-Resolution

Methods 이 논문이 사용한 방법론

Inpainting Train a convolutional neural network to generate the contents of an arbitrary image region conditioned on its surroundings.

Similar Papers 제목 키워드 기반

Vision-guided and Mask-enhanced Adaptive Denoising for Prompt-based Image Editing

2024-10-14 · Kejie Wang, Xuemeng Song, Meng Liu, Jin Yuan 외

Text-to-image diffusion models have demonstrated remarkable progress in synthesizing high-quality images from text prompts, which boosts researches on prompt-based image editing that edits a source image according to a t…

DenoisingImage GenerationText-based Image Editing

DiT4Edit: Diffusion Transformer for Image Editing

2024-11-05 · Kunyu Feng, Yue Ma, Bingyuan Wang, Chenyang Qi 외

Despite recent advances in UNet-based image editing, methods for shape-aware object editing in high-resolution images are still lacking. Compared to UNet, Diffusion Transformers (DiT) demonstrate superior capabilities to…

Image Generation

FLATTEN: optical FLow-guided ATTENtion for consistent text-to-video editing

2023-10-09 · Yuren Cong, Mengmeng Xu, Christian Simon, Shoufa Chen 외

Text-to-video editing aims to edit the visual appearance of a source video conditional on textual prompts. A major challenge in this task is to ensure that all frames in the edited video are visually consistent. Most rec…

Optical Flow EstimationText-to-Video EditingVideo Editing

LOCATEdit: Graph Laplacian Optimized Cross Attention for Localized Text-Guided Image Editing

2025-03-27 · Achint Soni, Meet Soni, Sirisha Rambhatla

Text-guided image editing aims to modify specific regions of an image according to natural language instructions while maintaining the general structure and the background fidelity. Existing methods utilize masks derived…

text-guided-image-editing

Rel-Zero: Harnessing Patch-Pair Invariance for Robust Zero-Watermarking Against AI Editing

2026-03-18 · Pengzhen Chen, Yanwei Liu, Xiaoyan Gu, Xiaojun Chen 외 arxiv

Recent advancements in diffusion-based image editing pose a significant threat to the authenticity of digital visual content. Traditional embedding-based watermarking methods often introduce perceptible perturbations to …

Image Editing