Papers › Resolution-robust Large Mask Inpainting with Fourier Convolutions

Resolution-robust Large Mask Inpainting with Fourier Convolutions

15 Sep 2021arXiv:2109.07161archive 2025-07-28

Roman Suvorov, Elizaveta Logacheva, Anton Mashikhin, Anastasia Remizova, Arsenii Ashukha, Aleksei Silvestrov, Naejin Kong, Harshith Goka, Kiwoong Park, Victor Lempitsky

Modern image inpainting systems, despite the significant progress, often struggle with large missing areas, complex geometric structures, and high-resolution images. We find that one of the main reasons for that is the lack of an effective receptive field in both the inpainting network and the loss function. To alleviate this issue, we propose a new method called large mask inpainting (LaMa). LaMa is based on i) a new inpainting network architecture that uses fast Fourier convolutions (FFCs), which have the image-wide receptive field; ii) a high receptive field perceptual loss; iii) large training masks, which unlocks the potential of the first two components. Our inpainting network improves the state-of-the-art across a range of datasets and achieves excellent performance even in challenging scenarios, e.g. completion of periodic structures. Our model generalizes surprisingly well to resolutions that are higher than those seen at train time, and achieves this at lower parameter&time costs than the competitive baselines. The code is available at \url{https://github.com/saic-mdal/lama}.

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="2109.07161")

Code

Syntology Ran 0 of 4 code samples harvested from 1 repository linked to this paper; 4 have no recorded run.

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

saic-mdal/lama officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
Moldoteck/lama mentioned on GitHubpytorchnot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready report
NilsBochow/lama_reconstruction mentioned on GitHubpytorchApache-2.0 report
advimman/lama mentioned on GitHubpytorch report
geekyutao/inpaint-anything mentioned on GitHubpytorchApache-2.0 report
geomagical/lama-with-refiner mentioned on GitHubpytorchApache-2.0 report
haiv-lab/ospcoop_imagenet-bg mentioned on GitHubpytorch report
rawmean/lama mentioned on GitHubpytorchApache-2.0 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

4 samples harvested; 0 ran; 0 honoured the contract we drafted; 4 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.

4unverified

Licence: 0 of the 4 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 saic-mdal/lama. “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.

create_rectangle_mask saic-mdal/lama/bin/evaluator_example.py official repository unverified Apache-2.0 (permissive) · af46f33c9fa16139 · report
draw_score saic-mdal/lama/bin/analyze_errors.py official repository unverified Apache-2.0 (permissive) · 4505106e1843b843 · report
get_checkpoint_files saic-mdal/lama/bin/make_checkpoint.py official repository unverified Apache-2.0 (permissive) · b158b43946f45555 · report
is_good_key saic-mdal/lama/bin/filter_sharded_dataset.py official repository unverified Apache-2.0 (permissive) · 5c5eb60a1db7d6a9 · report

Tasks

Image InpaintingSeeing Beyond the Visible

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Inpainting CelebA-HQ LaMa FID 8.15 #5 of 6 Archive leaderboard report
Image Inpainting CelebA-HQ LaMa P-IDS 2.07 #5 of 6 Archive leaderboard report
Image Inpainting CelebA-HQ LaMa U-IDS 7.58 #5 of 6 Archive leaderboard report
Image Inpainting Places2 LAMA FID 2.97 #5 of 14 Archive leaderboard report
Image Inpainting Places2 LAMA P-IDS 13.09 #5 of 14 Archive leaderboard report
Image Inpainting Places2 LAMA U-IDS 32.29 #5 of 14 Archive leaderboard report
Seeing Beyond the Visible KITTI360-EX LaMa Average PSNR 18.98 #3 of 7 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

InpaintingLAMASoftmaxTanh Activation

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