Ubuntu下部署IOPaint(Lama Cleaner)图像人物去除项目
1、克隆项目,并进入项目文件夹
git clone https://github.com/Sanster/IOPaint.git && cd IOPaint
2、创建并激活虚拟环境
uv venv && source .venv/bin/activate
3、安装Pytorch等组件
uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130
(nvidia应当是最新驱动程序)
4、安装IOPaint
uv pip install iopaint
5、下载模型文件并移入指定目录
https://github.com/Sanster/models/releases/tag/add_big_lama页面下的
(https://github.com/Sanster/models/releases/download/add_big_lama/big-lama.pt)
将模型文件下载好后移入至:
~/.cache/torch/hub/checkpoints/
(未创建时,应先分别创建.cache下的torch,hub和checkpoints目录)
6、在命令行中运行命令:
iopaint start --model=lama --device=cuda --port=8080
7、浏览器地址栏中输入:
http://127.0.0.1:8080/
评论
发表评论