本地部署 lama-cleaner
- [什么是 lama-cleaner](#什么是 lama-cleaner)
- [Github 地址](#Github 地址)
- [部署 lama-cleaner](#部署 lama-cleaner)
- [启动 lama-cleaner](#启动 lama-cleaner)
什么是 lama-cleaner
lama-cleaner 是一款由 SOTA AI 模型提供支持的免费开源修复工具。
从照片中删除任何不需要的物体、缺陷、人物,或擦除并替换(由稳定扩散驱动)照片上的任何东西。
Github 地址
https://github.com/Sanster/lama-cleaner
部署 lama-cleaner
克隆代码,
git clone https://github.com/Sanster/lama-cleaner.git; cd lama-cleaner
安装 pytorch,
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
conda install -y -c "nvidia/label/cuda-12.1.0" cuda-runtime
安装 lama-cleaner
,
pip install lama-cleaner
启动 lama-cleaner
运行,
lama-cleaner --model=lama --device=cuda --port=8080
Lama Cleaner 在 http://localhost:8080 上运行。
完结!