Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
Go to file
2024-01-05 15:10:32 +08:00
.github Update issue templates 2023-02-17 10:01:20 +08:00
assets Add files via upload 2023-05-18 22:25:41 +08:00
docker update dockerfile 2023-05-19 21:46:49 +08:00
lama_cleaner add adjust mask feature 2024-01-05 14:58:05 +08:00
scripts get samplers from backend 2024-01-02 14:34:36 +08:00
web_app fix 2024-01-05 15:10:32 +08:00
.gitignore update 2023-12-28 10:48:52 +08:00
build_docker.sh update dockerfile 2023-01-20 09:50:14 +08:00
LICENSE init 2021-11-15 22:21:01 +08:00
main.py add setup.py 2022-04-18 15:15:51 +08:00
publish.sh wip 2023-12-30 23:36:44 +08:00
README.md Update README.md 2023-09-01 10:16:56 +08:00
requirements-dev.txt update 2023-12-22 14:00:30 +08:00
requirements.txt add diffusion progress 2024-01-02 17:13:11 +08:00
setup.py 1.2.4 2023-10-05 21:56:13 +08:00

logo

Lama Cleaner

A free and open-source inpainting tool powered by SOTA AI model.

total download version Open in Colab Hugging Face Spaces python version version

https://user-images.githubusercontent.com/3998421/196976498-ba1ad3ab-fa18-4c55-965f-5c6683141375.mp4

Features

Quick Start

Lama Cleaner make it easy to use SOTA AI model in just two commands:

# In order to use the GPU, install cuda version of pytorch first.
# pip install torch==1.13.1+cu117 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cu117
pip install lama-cleaner
lama-cleaner --model=lama --device=cpu --port=8080

That's it, Lama Cleaner is now running at http://localhost:8080

See all command line arguments at lama-cleaner-docs

Development

Only needed if you plan to modify the frontend and recompile yourself.

Frontend

Frontend code are modified from cleanup.pictures, You can experience their great online services here.

  • Install dependencies:cd lama_cleaner/app/ && pnpm install
  • Start development server: pnpm start
  • Build: pnpm build