Papers › Learning Prior Feature and Attention Enhanced Image Inpainting

Learning Prior Feature and Attention Enhanced Image Inpainting

3 Aug 2022arXiv:2208.01837archive 2025-07-28

Chenjie Cao, Qiaole Dong, Yanwei Fu

Many recent inpainting works have achieved impressive results by leveraging Deep Neural Networks (DNNs) to model various prior information for image restoration. Unfortunately, the performance of these methods is largely limited by the representation ability of vanilla Convolutional Neural Networks (CNNs) backbones.On the other hand, Vision Transformers (ViT) with self-supervised pre-training have shown great potential for many visual recognition and object detection tasks. A natural question is whether the inpainting task can be greatly benefited from the ViT backbone? However, it is nontrivial to directly replace the new backbones in inpainting networks, as the inpainting is an inverse problem fundamentally different from the recognition tasks. To this end, this paper incorporates the pre-training based Masked AutoEncoder (MAE) into the inpainting model, which enjoys richer informative priors to enhance the inpainting process. Moreover, we propose to use attention priors from MAE to make the inpainting model learn more long-distance dependencies between masked and unmasked regions. Sufficient ablations have been discussed about the inpainting and the self-supervised pre-training models in this paper. Besides, experiments on both Places2 and FFHQ demonstrate the effectiveness of our proposed model. Codes and pre-trained models are released in https://github.com/ewrfcas/MAE-FAR.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2208.01837")

Code

Syntology Ran 1 of 10 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · fixture could not drive it.

By repository: official repository: 10 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ewrfcas/MAE-FAR officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 1 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
9unverified

Licence: 10 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ewrfcas/MAE-FAR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

extract_patches ewrfcas/MAE-FAR/ACR/networks/generators.py official repository ran · fixture could not drive it fingerprinted licence not identified · pointer only · d1f2e1d8d9f12c48 · report
ACRModel ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · 48b341edab1e2386 · report
FFC ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · 81c5a1defd65ad90 · report
FFCGenerator ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · 78e62730a8497f98 · report
FFCResnetBlock ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · b13f15c9ee45a4cd · report
FFC_BN_ACT ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · 89fdcce3884bdbb0 · report
FourierUnit ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · 0f59a3bfb61b0021 · report
GCEncoder ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · e3dd50799f4e53e2 · report
GroupConvAttention ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · 374a759dd4a97d62 · report
SpectralTransform ewrfcas/MAE-FAR/ACR/networks/generators.py official repository unverified licence not identified · pointer only · c68c25adc7df2dd1 · report

Tasks

Image InpaintingImage RestorationObject Detectionobject-detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

InpaintingMAE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections