ComfyUI-Bringing-Old-Photos-Back-to-Life插件
这个插件是基于微软的开源项目适配ComfyUI而来的,专门用于修复老照片、破损照片。单独使用这个插件的节点效果不是很好,需要 配合ComfyUI的其他众多节点一起使用,效果更好。
插件
下载地址:https://github.com/cdb-boop/ComfyUI-Bringing-Old-Photos-Back-to-Life
安装方法
插件下载
在ConfyUI的Manger管理器中直接下载,有点大,需要等一下。
模型安装
1、下载BOPBTL模型文件
解压后得到如下三个模型
restoration/VAE_A_quality/latest_net_G.pth
restoration/VAE_B_quality/latest_net_G.pth
restoration/VAE_B_scratch/latest_net_G.pth
把它们放在放在models/vae/目录下,为了方便管理可以新建一个bopbtl目录,然后放进去 models\vae\bopbtl\VAE_A_quality。
还有如下四个目录
restoration/mapping_quality/latest_net_mapping_net.pth
restoration/mapping_scratch/latest_net_mapping_net.pth
restoration/mapping_Patch_Attention/latest_net_mapping_net.pth
detection/FT_Epoch_latest.pt //用于划痕检测
放在models/checkpoints/bopbtl/目录下,把第四个目录的 detection 改名为 scratch_detection,models\checkpoints\bopbtl\scratch_detection\FT_Epoch_latest.pt。
2、下载 shape_predictor_68_face_landmarks.dat 文件
下载地址:http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
下载后解压,然后放到 models/facedetection/ 目录。
3、下载 Face Enhancement Models 模型
解压后会得到 如下两个模型
Setting_9_epoch_100/latest_net_G.pth (256x256)
FaceSR_512/latest_net_G.pth (512x512)
放到models/checkpoints/bopbtl/目录。