# advimman/lama

🦙  LaMa Image Inpainting, Resolution-robust Large Mask Inpainting with Fourier Convolutions, WACV 2022

Repository: https://github.com/advimman/lama
Canonical: https://ross.abutalabs.com/products/lama
Homepage: https://advimman.github.io/lama-project/
Language: Jupyter Notebook
License: Apache-2.0
License Family: permissive
Topics: inpainting, inpainting-methods, inpainting-algorithm, computer-vision, cnn, deep-learning, deep-neural-networks, image-inpainting, fourier, fourier-transform, fourier-convolutions, colab-notebook, colab, high-resolution, generative-adversarial-network, gan, generative-adversarial-networks, pytorch
Last push: 2025-02-05T08:41:52+00:00

## Health v2 (maintenance only)
Score: 34/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 5, release rhythm 35, longevity 100
- inputs: {"age_days": 1829, "days_push": 574, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10217, forks 1080 (observed 2026-08-28T04:10:39.937580+00:00)

## What it is
LaMa is a PyTorch-based image inpainting model that fills large missing regions in images using fast Fourier convolutions, generalizing well to resolutions far above its training resolution. It is the reference implementation of the WACV 2022 paper 'Resolution-robust Large Mask Inpainting with Fourier Convolutions'.

## Use cases
- remove unwanted objects from photos
- fill in large missing areas of an image
- inpaint high-resolution images up to 2k
- complete periodic structures like fences or textures
- erase watermarks or text from images
- build an object removal web tool

## When to choose
- you need to fill large masks or holes in images
- you need inpainting at resolutions higher than the model was trained on
- you want a proven research model with pretrained weights and many third-party integrations

## When to avoid
- you need text-guided generative inpainting rather than mask-based completion
- you need an actively developed project with frequent updates
- you need a lightweight CPU-only solution

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, machine-learning, deep-learning
- domain: computer-vision, image-processing, deep-learning, machine-learning
- platform: python, cross-platform
- tags: image-inpainting, gan, fourier-convolutions, pytorch, object-removal, high-resolution, research-model, wacv-2022, gpu

## Member repositories
- advimman/lama (main) score 34

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.937580+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:30.155118+00:00, confidence not recorded.
  - readme: https://github.com/advimman/lama (fetched 2026-08-28T04:10:39.937580+00:00, sha 7db1b2b9b64a)
  - homepage: https://advimman.github.io/lama-project/ (fetched 2026-08-29T08:18:58.410009+00:00, sha 657081b2416c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
