超简单搭建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博客

相关推荐
鬼手点金14 分钟前
提示注入:上下文安全的核心威胁
人工智能·安全·microsoft·机器学习·缓存·prompt
山川绿水16 分钟前
DeepSeek-DSH安装报错[deploy] 命令失败:npx -y pnpm install --prefer-offline
人工智能·网络安全
ZhengEnCi17 分钟前
脉冲神经网络是什么:从LIF神经元到第三代神经网络的能耗优势
人工智能·神经网络·机器学习
小虎AI生活19 分钟前
腾讯 Buddy One 上手:跨应用 AI 协同的配置步骤与安全红线(附派活验收清单)
人工智能·超级个体·一人公司·青玥ai
Solange__23 分钟前
AI世界模型、3D场景生成和游戏引擎怎么选?按5类任务比较交互、物理与导出
开发语言·人工智能·游戏·平面·3d·自然语言处理·游戏引擎
loulanyue_26 分钟前
物理AI的五次跃迁与部署态终局:从Worken度量衡到灵渠OS开源——读智元机器人联合创始人兼CTO彭志辉(稚晖君)演讲
人工智能·具身智能·智元机器人·稚晖君
Solange__28 分钟前
物流园区怎么用AI生成3D调度预演?从道路底图、车辆转弯到网页评审
图像处理·人工智能·游戏·3d·ai·自然语言处理·关卡设计
编程见习者29 分钟前
Deep Agents介绍
人工智能·python·langchain
椒颜皮皮虾྅30 分钟前
模型部署不再卡在环境上:DeploySharp 四大推理引擎与 Windows/Linux 离线交付实战
linux·运维·开发语言·人工智能·windows·计算机视觉·cuda
Kobebryant-Manba33 分钟前
IEKT向量矩阵流程&评估
人工智能·算法·矩阵