Install
Docker

docker

Run Docker (cpu)

docker run -p 8080:8080 \
-v /path/to/cache_dir:/root/.cache/ \
--rm cwq1913/lama-cleaner:cpu-1.2.5 \
lama-cleaner --device=cpu --port=8080 --host=0.0.0.0

Run Docker (gpu)

  • cuda: 11.8
  • pytorch: 2.1.0
  • minimum nvidia driver: 515.43.04+
  • xformers: 0.0.22.post4
docker run --gpus all -p 8080:8080 \
-v /path/to/cache_dir:/root/.cache/ \
--rm cwq1913/lama-cleaner:gpu-1.2.5 \
lama-cleaner --device=cuda --port=8080 --host=0.0.0.0

The dependencies for all the plugins are already included in the image. You can refer to this doc (opens in a new tab) to add the corresponding startup parameters.

Then open http://localhost:8080 (opens in a new tab)