All models

big_lama_fourier_generator

The generator of Big LaMa, an image inpainting network whose residual blocks use fast Fourier convolutions.

Diffusion and generative · 1,444 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (54 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
51M
Operations
1,444
Framework
PyTorch
Recurrent
No
Published
WACV 2022
Cited by
12 (as of 22 October 2026)
Authors
Roman Suvorov, Elizaveta Logacheva, Anton Mashikhin and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3647
Graph hash
fae82f42a3b3d887a304509f6fa37d0f5423e2ab654c9dea528c932216da042c
Skeleton hash
fa54bb265ef40af540a8cbc63968d70f7ef952068df0d2c8fb3739578b5b6393
Architecture hash
97dff6ec19f1b9617d952656c52719a8231aad19e3b8554b74602a8231d1527a
Diagram SHA-256
8d58e432d56cab95c399b895373002cb1edea3be041d05804cdcae5819315685
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

LaMa, short for large mask inpainting, is a method for filling in missing areas of an image, and this model is the generator of its larger version, Big LaMa. The paper finds that one of the main reasons inpainting systems struggle with large missing areas is the lack of an effective receptive field in both the inpainting network and the loss function.

The inpainting network is a feed-forward generator whose input is the masked image stacked with the mask, a four-channel tensor. It follows a ResNet-like architecture with 3 downsampling blocks, a series of residual blocks and 3 upsampling blocks, and the residual blocks use fast Fourier convolutions (FFCs). An FFC splits its channels into two parallel branches: a local branch that uses conventional convolutions and a global branch that uses a real FFT to account for global context. Because FFCs have an image-wide receptive field, the generator can account for global context starting from the early layers.

Big LaMa differs from the standard model in the depth of the generator, the training dataset and the batch size. It has 18 residual blocks, all based on FFC, and the paper reports 51M parameters. The authors' repository states that LaMa generalizes to much higher resolutions than the 256x256 it saw during training.

Key idea. LaMa is an image inpainting network built on fast Fourier convolutions, which have an image-wide receptive field, combined with a high receptive field perceptual loss and large training masks.

  • Big LaMa
  • LaMa
  • large mask inpainting
  • image inpainting
  • fast Fourier convolution
  • FFC
  • Resolution-robust Large Mask Inpainting with Fourier Convolutions
  • inpainting generator
  • big-lama

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{suvorov2021resolutionrobustlargemaskinpainting,
      title={Resolution-robust Large Mask Inpainting with Fourier Convolutions}, 
      author={Roman Suvorov and Elizaveta Logacheva and Anton Mashikhin and Anastasia Remizova and Arsenii Ashukha and Aleksei Silvestrov and Naejin Kong and Harshith Goka and Kiwoong Park and Victor Lempitsky},
      year={2021},
      eprint={2109.07161},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2109.07161}, 
}