deepfacelab中文网

 找回密码
 立即注册(仅限QQ邮箱)
查看: 1289|回复: 10

一键生成涩图,换脸高清修復一体整合包

[复制链接]

11

主题

67

帖子

7173

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
7173
 楼主| 发表于 2025-1-18 15:37:38 | 显示全部楼层 |阅读模式
本帖最后由 a931386 于 2025-1-26 12:35 编辑

新增一个提升细节的工作流程


先看范例

8.jpg



姿勢參考原圖(512*768 放大3倍 1536*2304)
3拷貝.jpg



直接输入1536*2304不透过Supir放大
2拷貝.jpg

透过Supir放大到2667*4000
1拷貝.jpg

对比 左边 无Supir 右边 Supir放大
11.jpg

放大检视 无Supir
100.jpg


放大检视 Supir放大
200.jpg

Supir会使细节更好,但需要放大才看得出差异

原理是透过SDXL Controlnet Tile 锁住画面
提高换脸图採样器的宽高去提升细节
原始应该都是设置为SDXL的支援解析度
但因为有Tile的关係
可以往上设置的更高
之后再送至Supir做放大

链接: https://pan.baidu.com/s/1WstkatsKpk0ZCABKe725Sw?pwd=8ga8 提取码: 8ga8

显卡4090测试设置能提高到3

未命名.jpg

---------------------------------------------------------------------

新增一体整合包 37.6G

https://pan.baidu.com/s/1X-n4hESnLf-RvilO-uA3UA?pwd=cg8f提取码: cg8f


模型节点文件全部打包好了,解压立即就能使用

密碼:a931386


---------------------------------------------------------------------
1.jpg
2.jpg

原理是先用喜欢的AI模型

产生姿势再进行Instantid换脸

最后使用Supir高清修復放大图片


Comfyui 工作流链接: https://pan.baidu.com/s/1CaPoWQiwzf3q3TAhRinMeg?pwd=vfhn 提取码: vfhn


新版本节点报错无法兼容可以改用下面的旧版本
https://github.com/comfyanonymous/ComfyUI/releases/download/v0.1.2/ComfyUI_windows_portable_nvidia.7z

这是我重新安装Comfyui测试时会有问题的节点
555555.jpg

解压直接放在ComfyUI\custom_nodes

链接: https://pan.baidu.com/s/1zR_7y84rxt4mm9u4MbKLBA?pwd=hvx7 提取码: hvx7


有些模型要自行另外下载并放入对应的资料夹内

ComfyUI\models\checkpoints
leosamsHelloworldXL_helloworldXL50GPT4V
lustifySDXLNSFWSFW_v20
majicmixRealistic_v7
SUPIR-v0Q

ComfyUI\models\loras
POVMissionary
pov-squatting-cowgirl-lora-1-mb

ComfyUI\models\vae
vae-ft-mse-840000-ema-pruned.ckpt

ComfyUI\models\clip
CLIP-ViT-bigG-14-laion2B-39B-b160k

ComfyUI\models\controlnet
ttplanetSDXLControlnet_v20Fp16.safetensors

instantid 安装请参考

ComfyUI_InstantID

Comfy_00044_ 拷貝.jpg
3.jpg
4.jpg









评分

参与人数 3贡献 +3 收起 理由
伽利略 + 1 太好了感谢楼主
甘甜甘祖汐 + 1
tmrsm + 1 十分给力!

查看全部评分

回复

使用道具 举报

0

主题

17

帖子

2224

积分

初级丹圣

Rank: 8Rank: 8

积分
2224

万事如意节日勋章

发表于 2025-1-23 16:21:49 | 显示全部楼层
本帖最后由 tmrsm 于 2025-1-23 16:40 编辑

在樓主的工作流中,我嘗試了REACTOR,覺得換臉效果比INSTANTID還好,樓主可以試試。

另外補充下REACTOR有NSFW版本的。
回复 支持 1 反对 0

使用道具 举报

11

主题

67

帖子

7173

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
7173
 楼主| 发表于 2025-1-21 07:56:45 | 显示全部楼层
tmrsm 发表于 2025-1-20 13:54
感謝大佬分享。

試兩天,跑成功了,回饋下過程中遇到的問題。

未命名-1 拷貝.jpg

這裡有改路徑的地方

评分

参与人数 1贡献 +1 收起 理由
tmrsm + 1 太好了感谢楼主

查看全部评分

回复 支持 1 反对 0

使用道具 举报

40

主题

290

帖子

2305

积分

初级丹圣

Rank: 8Rank: 8

积分
2305

万事如意节日勋章

发表于 2025-1-18 19:37:49 | 显示全部楼层
全收了
回复

使用道具 举报

0

主题

17

帖子

2224

积分

初级丹圣

Rank: 8Rank: 8

积分
2224

万事如意节日勋章

发表于 2025-1-20 13:54:25 | 显示全部楼层
本帖最后由 tmrsm 于 2025-1-20 15:23 编辑

感謝大佬分享。

試兩天,跑成功了,回饋下過程中遇到的問題。

"load image batch"(換臉圖片路徑連接過去的節點)
需要在節點上右鍵選刷新節點,否則路徑一直是樓主的。
回复 支持 反对

使用道具 举报

25

主题

116

帖子

930

积分

高级丹师

Rank: 5Rank: 5

积分
930
发表于 2025-1-24 10:44:50 | 显示全部楼层
大哥 换脸目标文件夹在哪里啊。。没看到。。
回复 支持 反对

使用道具 举报

11

主题

67

帖子

7173

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
7173
 楼主| 发表于 2025-1-24 11:32:57 | 显示全部楼层
unclejay1197 发表于 2025-1-24 10:44
大哥 换脸目标文件夹在哪里啊。。没看到。。


075612o9nnzagzcqyh6qq7.jpg

你在本地自己建立資料夾後,把路徑輸入在這邊就會執行裡面的圖片了

回复 支持 反对

使用道具 举报

25

主题

116

帖子

930

积分

高级丹师

Rank: 5Rank: 5

积分
930
发表于 2025-1-24 11:48:32 | 显示全部楼层
a931386 发表于 2025-1-24 11:32
你在本地自己建立資料夾後,把路徑輸入在這邊就會執行裡面的圖片了

...

找到了 谢谢大佬
但是成功了一张
后面报错
urred when executing SUPIR_Upscale:

Allocation on device

File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 317, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 192, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SUPIR\nodes.py", line 344, in process
raise e
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SUPIR\nodes.py", line 327, in process
samples = self.model.batchify_sample(imgs, caps, num_steps=steps,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SUPIR\SUPIR\models\SUPIR_model.py", line 139, in batchify_sample
self.model.diffusion_model.to(device)
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1173, in to
return self._apply(convert)
^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
[Previous line repeated 4 more times]
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 804, in _apply
param_applied = fn(param)
^^^^^^^^^
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1159, in convert
return t.to(
^^^^^
回复 支持 反对

使用道具 举报

11

主题

67

帖子

7173

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
7173
 楼主| 发表于 2025-1-24 14:47:49 | 显示全部楼层
unclejay1197 发表于 2025-1-24 11:48
找到了 谢谢大佬
但是成功了一张
后面报错

https://github.com/kijai/ComfyUI-SUPIR/issues/150


可能爆顯存,放大倍數畫素調小試試

上面是參考圖放大倍數
下面是成品圖放大畫素(長邊)

未命名.jpg

回复 支持 反对

使用道具 举报

25

主题

116

帖子

930

积分

高级丹师

Rank: 5Rank: 5

积分
930
发表于 2025-1-25 16:02:09 | 显示全部楼层
改小了 还是一样。。

curred when executing PreviewImage:

'NoneType' object is not subscriptable

File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 317, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 192, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1494, in save_images
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
~~~~~~^^^
回复 支持 反对

使用道具 举报

QQ|Archiver|手机版|deepfacelab中文网 |网站地图

GMT+8, 2025-2-5 00:39 , Processed in 0.131783 second(s), 39 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表