超简单搭建AI去水印和图像修复算法lama-cleaner二

  1. 先看第一篇LaMa模型的使用, 再往下看下面的内容:
    超简单搭建AI去水印和图像修复算法lama-cleaner(包含网页UI单张操作和代码批量运行)一

7.其他算法模型调用和使用(可以自行选择模型, 调试哪个效果更好)

其他不同模型测试的效果与LaMa的对比:

bash 复制代码
效果:LDM > LaMa
速度:LDM更慢
特点:比LaMa有更好、更多的细节


效果:ZITS > LaMa
速度:ZITS更慢
特点:能在高分辨弱纹理场景中,恢复关键的边缘和线框


效果:MAT 和 LaMa 差不多
速度:MAT稍慢一些
特点:大面积像素缺失的补全, 并提供多样性生成(会大幅改变原始图的特征)


效果:FcF > LaMa
速度:差不多
特点:能生成更好的结构和纹理, 但只能支持512x512的输入


效果:Manga > LaMa (在漫画图上的效果)
速度:差不多
特点:能生成更好的结构和纹理, 但只能支持512x512的输入在漫画图像上表现的比LaMa模型效果更好
7.1 LDM模型
bash 复制代码
github:https://github.com/CompVis/latent-diffusion
paper:https://arxiv.org/abs/2112.10752

--model=ldm

LDM模型手动下载:
(1) https://github.com/Sanster/models/releases/download/add_ldm/diffusion.pt、
(2) https://github.com/Sanster/models/releases/download/add_ldm/cond_stage_model_decode.pt
(3) https://github.com/Sanster/models/releases/download/add_ldm/cond_stage_model_encode.pt
7.2 ZITS模型
bash 复制代码
github:https://github.com/DQiaole/ZITS_inpainting
paper:https://arxiv.org/abs/2203.00867

--model=zits

ZITS模型手动下载:
https://github.com/Sanster/models/releases/download/add_zits/zits-wireframe-0717.pt
https://github.com/Sanster/models/releases/download/add_zits/zits-edge-line-0717.pt
https://github.com/Sanster/models/releases/download/add_zits/zits-structure-upsample-0717.pt
https://github.com/Sanster/models/releases/download/add_zits/zits-inpaint-0717.pt
7.3 MAT模型
bash 复制代码
github:https://github.com/fenglinglwb/MAT
paper:https://arxiv.org/abs/2203.15270

--model=mat

MAT模型手动下载:
https://github.com/Sanster/models/releases/download/add_mat/Places_512_FullData_G.pth
7.4 FcF模型
bash 复制代码
github:https://github.com/SHI-Labs/FcF-Inpainting
paper:https://arxiv.org/abs/2208.03382

--model=fcf

FcF模型手动下载:
https://github.com/Sanster/models/releases/download/add_fcf/places_512_G.pth
7.5 Manga模型
bash 复制代码
Manga模型
github:https://github.com/msxie92/MangaInpainting
paper:https://www.cse.cuhk.edu.hk/~ttwong/papers/mangainpaint/mangainpaint.html

--model=manga

Manga模型手动下载:
https://github.com/Sanster/models/releases/download/manga/erika.jit
https://github.com/Sanster/models/releases/download/manga/manga_inpaintor.jit

参考网址:
利用Lama Cleaner本地实现AIGC试玩:擦除对象、替换对象、更换风格等等-CSDN博客

相关推荐
AI多Agent协作实战派11 小时前
【AI探索历程17】从“给自己用“到想“让别人用“
人工智能
吴佳浩12 小时前
Memory Provider 实战:Hermes、Mem0、Honcho、Hindsight 为什么都这样设计?
人工智能·agent·ai编程
吴佳浩12 小时前
企业级 Agent Memory 选型指南:如何构建可扩展的 Memory Service?
人工智能·agent·ai编程
北方的银狐-Zero13 小时前
ERP 管执行,数据管标准,OntoL本体 管思考:企业智能化升级的规划图
大数据·人工智能·本体论
浅安的邂逅14 小时前
260918-白帽把 OpenAI 论坛“打穿“了:攻防赛漏洞、账户被 Claude 入侵、模型偷偷掩盖不当行为
人工智能·大模型·ai编程·ai模型·行业动态
jinyishu_14 小时前
认识 AI Agent:概念、架构、设计模式与主流框架
人工智能
Hrain-AI14 小时前
AI 爬虫三档授权工程落地:搜索放行、训练拦截、Agent 分层(附脚本)
人工智能·elasticsearch·milvus
sunhy_csdn14 小时前
“词码”作为 Token 候选译名
人工智能
Hrain-AI14 小时前
多 Agent 并行不打架:worktree 隔离与反馈回流落地(附脚本)
网络·数据库·人工智能·架构