ChatGPT开源项目Sanster/lama-cleaner

ChatGPT开源1个月前发布 admin
117 0

ChatGPT开源项目从你的照片中删除任何不需要的物体、缺陷、人物或擦除和替换(由稳定扩散驱动)你照片上的任何东西。

快速上手

Lama Cleaner只需两个命令即可轻松使用SOTA AI模型:# 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

就是这样,Lama Cleaner 现在以 http://localhost:8080 的速度运行

在 lama-cleaner-docs 查看所有命令行参数

发展

仅当您计划修改前端并自行重新编译时才需要。

前端

前端代码是从 cleanup.pictures 修改而来的,可以体验它们的 很棒的在线服务在这里

  • 安装依赖:cd lama_cleaner/app/ && pnpm install
  • 启动开发服务器:pnpm start
  • 建:pnpm build
© 版权声明

相关文章

没有相关内容!

暂无评论

暂无评论...