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

相关推荐
koo36411 分钟前
pytorch深度学习笔记12
pytorch·笔记·深度学习
Akamai中国28 分钟前
基准测试:Akamai云上的NVIDIA RTX Pro 6000 Blackwell
人工智能·云计算·云服务·云存储
雨大王51233 分钟前
汽车AI智能体矩阵:驱动行业智能化变革的新范式
人工智能·汽车
SmartRadio1 小时前
在CH585M代码中如何精细化配置PMU(电源管理单元)和RAM保留
linux·c语言·开发语言·人工智能·单片机·嵌入式硬件·lora
旦莫1 小时前
Pytest教程:Pytest与主流测试框架对比
人工智能·python·pytest
●VON1 小时前
从模型到价值:MLOps 工程体系全景解析
人工智能·学习·制造·von
智慧地球(AI·Earth)1 小时前
Codex配置问题解析:wire_api格式不匹配导致的“Reconnecting...”循环
开发语言·人工智能·vscode·codex·claude code
GISer_Jing1 小时前
AI:多智能体协作与记忆管理
人工智能·设计模式·aigc
qq_411262421 小时前
纯图像传感器(只出像素),还是 Himax WiseEye/WE1/WE-I Plus 这类带处理器、能在端侧跑模型并输出“metadata”的模块
人工智能·嵌入式硬件·esp32·四博智联