IOPaint 是一個由最新技術(SOTA)AI 模型支持的免費開源圖像修復和擴展工具,使得圖像編輯變得更加簡單和高效。它具備擦除(Erase)、替換對象(Replace Object)、繪製文本(Draw Text)以及擴展畫布(Out-painting)等功能,能夠讓用戶從圖片中移除不需要的對象、缺陷、水印或人物,或者替換圖片中的任何事物。
開源地址:https://github.com/Sanster/IOPaint
示範:
https://huggingface.co/spaces/Sanster/iopaint-lama
https://colab.research.google.com/drive/1TKVlDZiE3MIZnAUMpv2t_S4hLr6TUY1d?usp=sharing
該項目由 Sanster 開發,目前已經獲得了 17.6k 的 Star,可見這個開源項目相當受歡迎。IOPaint 就像一個強大的 AI 工具箱,滿足從普通人到專業設計師的 PS 需求。
有啥炸裂的?
1. 完全免費和開源,支持 CPU、GPU 以及 Apple Silicon,可在自己電腦上部署
2. 方便小白用戶,提供了 Windows 一鍵安裝程序。
3. 擦除、修復圖像中的內容,可以切換多個 AI 模型來對比效果
4. 集成了多個流行的 AI 模型,如 runwayml/stable-diffusion-inpainting 和 Sanster/AnyText 等。
5. 有豐富的插件,例如 Segment Anything、RemoveBG、Anime Segmentation、RealESRGAN、GFPGAN 等,用於對象分割、背景移除、動漫圖像分割、超分辨率和面部恢復等。
6. 文件管理器功能,方便用戶瀏覽圖片並直接保存到輸出目錄。
如何使用?
如果你使用的是 Windows 系統,可以直接前往開源項目主頁找到下載鏈接。下面是常規部署方式:
1. 安裝 IOPaint 和依賴項:
pip3 install iopaint
2. 啟動 IOPaint 的 web 界面:
iopaint start --model=lama --device=cpu --port=8080
3. 在瀏覽器中訪問 http://localhost:8080 開始使用 IOPaint。