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
2023-11-01 21:14:52 +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 2023-11-01 21:14:52 +08:00
lama_cleaner fix typo in web_config 2023-11-01 09:03:53 +08:00
scripts Update environment.yaml 2023-04-24 17:17:13 +03:00
.gitignore fix pil_to_bytes quality 2023-02-07 21:06:31 +08:00
build_docker.sh update 2023-11-01 21:14:52 +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 update 2022-04-18 22:18:48 +08:00
README.md Update README.md 2023-11-01 09:20:35 +08:00
requirements-dev.txt add setup.py 2022-04-18 15:15:51 +08:00
requirements.txt cherry-pick from https://github.com/Sanster/lama-cleaner/pull/390 2023-10-05 21:55:57 +08:00
setup.py 1.2.5 2023-11-01 09:04:36 +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