skillfed

simple-lama-inpainting

simple-lama-inpainting v0.1.2 132.7K downloads/30d#11,538 on PyPI
License unclear Abandoned released

What it is and what it does

simple-lama-inpainting wraps the LaMa (Large Mask Inpainting) model in a lightweight Python package, letting you fill masked regions of images using deep learning. It accepts images and binary masks as input and outputs inpainted results. The package provides both a command-line interface for batch processing and a Python API for integration into larger workflows.

The package depends on torch, torchvision, opencv-python, pillow, numpy, and fire. It was last released on 2023-07-28 and is now abandoned, meaning no active maintenance or updates to handle breaking changes in its dependencies. The underlying LaMa model is from a 2021 research paper on resolution-robust inpainting.

Use it for:

  • Remove unwanted objects from photographs by masking them and running inpainting.
  • Fill in damaged or missing regions of images for restoration work.
  • Generate clean backgrounds by inpainting over foreground subjects in batch workflows.
  • Preprocess training data by removing distracting elements from images.
  • Command-line batch processing of multiple images with consistent mask-based inpainting.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Performs image inpainting using the LaMa model, filling in masked regions of images via a command-line tool or Python API.

No. The package is abandoned and has no declared license, creating both maintenance and legal risk. While it has low install friction and no known vulnerabilities, the lack of updates since 2023-07-28 means it will likely break as its dependencies evolve. Consider a maintained alternative or the original LaMa implementation directly.

Install

simple-lama-inpainting on PyPI

pip

pip install simple-lama-inpainting

uv

uv add simple-lama-inpainting

poetry

poetry add simple-lama-inpainting

Installing simple-lama-inpainting

Before you install

Low install friction with a pure Python wheel, but the package is abandoned as of 1113 days since its last release. Six runtime dependencies including torch and torchvision will add significant download and disk overhead.

License in practice

License treatment is unclear; the package declares no SPDX identifier or raw license text. Verify licensing before use in proprietary or commercial contexts.

Quickstart

pip install simple-lama-inpainting

from simple_lama_inpainting import SimpleLama

simple_lama = SimpleLama()
result = simple_lama(image, mask)
result.save("inpainted.png")

Requires Python >=3.10,<4.0. torch and torchvision dependencies may require a compatible CUDA toolkit or CPU-only build depending on your environment.

Verify before relying

  • Whether the package works reliably with current versions of torch, torchvision, and other dependencies given its abandoned status.
  • Actual license terms and attribution requirements for the underlying LaMa model and this wrapper.
  • Performance characteristics and memory requirements for typical image sizes.
  • Input/output format details beyond what the description excerpt specifies.

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.10,<4.0)
Install friction low — pure-Python wheel
Runtime dependencies 6 — numpy, opencv-python, pillow, torch, torchvision, fire
Maintenance abandoned — 1,113 days since the last release
First released
Downloads 132,729/month — #11,538 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: simple_lama_inpainting-0.1.2-py3-none-any.whl

Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11

Tags

image inpaintingremove objects from imagesfill masked regionslama inpaintingimage restorationcontent-aware fillneural image completion
image-processingdeep-learningabandoned

More Artificial Intelligence packages