Patch-based stochastic attention for image editing

被引:2
|
作者
Cherel, Nicolas [1 ]
Almansa, Andres [2 ,3 ]
Gousseau, Yann [1 ]
Newson, Alasdair [1 ]
机构
[1] Inst Polytech Paris, LTCI, Telecom Paris, Paris, France
[2] CNRS, MAP5, Paris, France
[3] Univ Paris Cite, Paris, France
关键词
Attention; Patch;
D O I
10.1016/j.cviu.2023.103866
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页数:10
相关论文
共 50 条
  • [21] PlenoPatch: Patch-Based Plenoptic Image Manipulation
    Zhang, Fang-Lue
    Wang, Jue
    Shechtman, Eli
    Zhou, Zi-Ye
    Shi, Jia-Xin
    Hu, Shi-Min
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2017, 23 (05) : 1561 - 1573
  • [22] Structural Adaptation for Patch-Based Image Denoising
    Du Xiaofeng
    Li Cuihua
    Yang Dunxu
    2009 INTERNATIONAL ASIA CONFERENCE ON INFORMATICS IN CONTROL, AUTOMATION, AND ROBOTICS, PROCEEDINGS, 2009, : 477 - +
  • [23] PATCH-BASED REGULARIZATION FOR ITERATIVE PET IMAGE RECONSTRUCTION
    Wang, Guobao
    Qi, Jinyi
    2011 8TH IEEE INTERNATIONAL SYMPOSIUM ON BIOMEDICAL IMAGING: FROM NANO TO MACRO, 2011, : 1508 - 1511
  • [24] Patch-based Over-exposure Correction in Image
    Yoon, Yeo-Jin
    Lee, Dae-Hong
    Kang, Seok-Jae
    Park, Won-Jae
    Ko, Sung-Jea
    18TH IEEE INTERNATIONAL SYMPOSIUM ON CONSUMER ELECTRONICS (ISCE 2014), 2014,
  • [25] Image Morphing Using Deformation and Patch-based Synthesis
    Chen, Jiaxu
    Zhang, Long
    Liu, Baoen
    Li, Xiaoxu
    Ye, Zhongfu
    2017 2ND INTERNATIONAL CONFERENCE ON IMAGE, VISION AND COMPUTING (ICIVC 2017), 2017, : 376 - 380
  • [26] ADAPTIVE PATCH-BASED INPAINTING FOR IMAGE BLOCK RECOVERY
    Liu, Yunqiang
    Wang, Jin
    Zhang, Huanhuan
    VISAPP 2010: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON COMPUTER VISION THEORY AND APPLICATIONS, VOL 1, 2010, : 52 - 59
  • [27] PATCH-BASED DIFFUSION LEARNING FOR HYPERSPECTRAL IMAGE CLUSTERING
    Murphy, James M.
    IGARSS 2020 - 2020 IEEE INTERNATIONAL GEOSCIENCE AND REMOTE SENSING SYMPOSIUM, 2020, : 1042 - 1045
  • [28] Multi-Scale Patch-Based Image Restoration
    Papyan, Vardan
    Elad, Michael
    IEEE TRANSACTIONS ON IMAGE PROCESSING, 2016, 25 (01) : 249 - 261
  • [29] SYNTHESIS VERSUS ANALYSIS IN PATCH-BASED IMAGE PRIORS
    Figueiredo, Mario A. T.
    2017 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), 2017, : 1338 - 1342
  • [30] A Novel Bayesian Patch-Based Approach for Image Denoising
    Ali, Rashid
    Peng Yunfeng
    Ul Amin, Rooh
    IEEE ACCESS, 2020, 8 (08): : 38985 - 38994