• «
  • 1
  • 2
  • 3
  • »
  • Pages: 1/3     Go

1327522.jpg

Ridley

GF  2024-05-02 12:26
(空的)

[comfyui]一键AI去衣工作流正式版分享




在使用本工作流前请务必先阅读基础篇教程并完成前置工作:https://bbs.south-plus.org/read.php?tid-2160293.html


考虑了一下还是重开一个帖发工作流吧,这次就不算是教程帖了,就介绍一下正式版工作流应该如何使用。

结合之前评论区的反馈,我对正式版工作流做了非常多的优化,看着是越来越复杂但使用是越来越简单了。



如图我配置了非常多的可调节选项(节点管理),也加入了批量处理节点,各选项的具体说明已经写在工作流的注释里了。




插件配置

完成了基础篇的前置工作后,建议更新comfyui本体和所有插件到最新版(直接在manager那里更新全部)。跟基础篇里的工作流相比,正式版还额外调用了以下节点和模型:

1. yolo模型

新工作流调用了impact节点下的各种yolo模型,你可以通过comfyui manager(管理器)——安装模型——搜索“yolo”,直接下载所有这些模型



2. rgthree插件

节点管理插件,直接通过秋葉启动或者管理器安装即可



3. Ipadapter模型

风格迁移插件,秋葉整合包自带ComfyUI_IPAdapter_plus插件,但模型需要额外下载
https://github.com/cubiq/ComfyUI_IPAdapter_plus
(打不开的去秋葉启动器设置里打开网站镜像代理再搜索插件,去到对应镜像网站)

CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors,下载并重命名,放到/models/clip_vision/下;
ip-adapter-plus_sd15.safetensors,下载放到/models/ipadapter/下;
除此以外你也可以下载使用github里提到的其他模型(一次性全下载得了,未来新的工作流可能会用到)。

Ipadapter_plus插件目前有个小bug,节点有可能无法识别出文件夹下的Ipadapter模型,你需要打开comfyui根目录下的folder_paths.py,在其中插入一行

folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

每次更新comfyui都需要重新粘贴一次

4. WAS节点修改

当然还有在教程三里提到过的肤色提取,你需要将以下代码覆盖到\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py的"class WAS_Image_Select_Color:"类里(如果以后更新了该节点,需要重新覆盖)

此帖售价 0 SP币,已有 244 人购买
若发现会员采用欺骗的方法获取财富,请立刻举报,我们会对会员处以2-N倍的罚金,严重者封掉ID!



初次使用

讲完了插件配置,首次使用该工作流你还可以依据自身需求调节以下节点:

1. Segment Anything



你可以根据你的显存大小设置调用的SAM模型,
显存>=12G:2.5G
显存>=8G:1.25G
显存<8G:370M


如果你的显存不足8G,可以在节点管理里二选一禁用Segment Anything并使用隔壁yolo模型节点,我感觉差距不大,yolo模型还更快些。

2. ckpt模型与VAE



如图你需要在{效率加载器}这里选用你中意的大模型与VAE(详见基础篇),并根据模型调整正负面提示词(不要使劲加高提示词权重,如果去衣效果不理想,那是遮罩和蒙版的问题,多尝试几次或者加入手绘遮罩辅助远比提示词可靠)

调整完后shift+S保存工作流,之后的使用基本只要关注节点管理就行了。剩下的问题你应该能在工作流注释里找到答案(注释在节点管理上方)。

别再问预处理器加载以及各种网络问题了,换个好点的梯子比什么都靠谱


自动去衣v1.0工作流

此帖售价 5 SP币,已有 244 人购买
若发现会员采用欺骗的方法获取财富,请立刻举报,我们会对会员处以2-N倍的罚金,严重者封掉ID!


随便收点SP吧,虽然没啥用。未来如果这个工作流有更新都会在这个帖子,欢迎反馈bug。


ea3872e2

B1F  2024-05-02 12:55
    

none.gif

yqaqy

厉害了,收场一波,等换了4090在研究。

none.gif

夜香幽兰

mark,感谢大佬

none.gif

薄幸

感谢大佬,
求问一下有没有办法批量将一整个文件夹的图一次性添加进工作流自动去衣

1327522.jpg

Ridley

B5F  2024-05-02 14:49
(空的)

回 4楼(薄幸) 的帖子

我不是都写在里面了么

none.gif

薄幸

看到了,再次感谢大佬

none.gif

f7a18ab0

感谢分享

none.gif

paopaoge

启动就报错。。。



大佬帮忙看看。。。

1327522.jpg

Ridley

B9F  2024-05-02 17:23
(空的)

回 8楼(49ab082b) 的帖子

试试在管理器里更新全部,然后看一下impact节点和ipadapter节点是否正确安装。

另外RGB这里我合并了三个整数节点,我想知道现在无法识别是整数节点失效的原因还是合并节点的原因

none.gif

paopaoge

Re:回 8楼(49ab082b) 的帖子

引用
引用第9楼08814525于2024-05-02 17:23发表的 回 8楼(49ab082b) 的帖子 :
试试在管理器里更新全部,然后看一下impact节点和ipadapter节点是否正确安装。

另外RGB这里我合并了三个整数节点,我想知道现在无法识别是整数节点失效的原因还是合并节点的原因


嗯,都装了的。。。
我看了下,貌似这2个节点默认就是装了的。。。

1327522.jpg

Ridley

B11F  2024-05-02 17:50
(空的)

回 10楼(49ab082b) 的帖子

那就更新到最新版,秋叶整合包里comfyui本体和插件版本都比较旧,如果无法更新就重装该节点

none.gif

薄幸

目前走到rgthree这里会报错
Error occurred when executing Any Switch (rgthree):

list index out of range

File "C:\APP\ComfyUI-aki-v1.3\execution.py", line 141, in recursive_execute
input_data_all = get_input_data(inputs, class_def, unique_id, outputs, prompt, extra_data)
File "C:\APP\ComfyUI-aki-v1.3\execution.py", line 26, in get_input_data
obj = outputs[input_unique_id][output_index]




控制台那边相关信息是这样

[rgthree] Using rgthree's optimized recursive execution.
[rgthree] First run patching recursive_output_delete_if_changed and recursive_will_execute.
[rgthree] Note: If execution seems broken due to forward ComfyUI changes, you can disable the optimization from rgthree settings in ComfyUI.

1327522.jpg

Ridley

B13F  2024-05-02 18:23
(空的)

回 12楼(薄幸) 的帖子

我想可能是没有安装肤色提取脚本的原因,switchany也无法处理输出项为空的情况

none.gif

paopaoge

Re:回 10楼(49ab082b) 的帖子

引用
引用第11楼08814525于2024-05-02 17:50发表的 回 10楼(49ab082b) 的帖子 :
那就更新到最新版,秋叶整合包里comfyui本体和插件版本都比较旧,如果无法更新就重装该节点


谢谢高手,升级完了,可以跑了,谢谢。

但是发现貌似还是有衣服去不掉。。。可以帮忙看看嘛?



去完之后是


none.gif

paopaoge

引用
引用第12楼4ad173a7于2024-05-02 18:11发表的  :
目前走到rgthree这里会报错
Error occurred when executing Any Switch (rgthree):

list index out of range

.......


这个问题我遇到了,你把他was node那个python脚本替换了就好了。

1327522.jpg

Ridley

B16F  2024-05-02 23:25
(空的)

回 14楼(49ab082b) 的帖子

你看一眼工作流就知道问题出在哪了,肯定是自动遮罩没识别准确(也有可能bra没被理解成衣服),模型不可能百分百可靠,换更大的SAM模型或者手动画两笔

none.gif

97487ggg

太牛啦

none.gif

拳打嘤嘤怪

Error occurred when executing Efficient Loader:

'NoneType' object has no attribute 'lower'

File "C:\ComfyUI-aki-v1.1\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\ComfyUI-aki-v1.1\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\ComfyUI-aki-v1.1\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\ComfyUI-aki-v1.1\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 156, in efficientloader
model, clip, vae = load_checkpoint(ckpt_name, my_unique_id, cache=ckpt_cache, cache_overwrite=True)
File "C:\ComfyUI-aki-v1.1\custom_nodes\efficiency-nodes-comfyui\tsc_utils.py", line 246, in load_checkpoint
out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
File "C:\ComfyUI-aki-v1.1\comfy\sd.py", line 505, in load_checkpoint_guess_config
sd = comfy.utils.load_torch_file(ckpt_path)
File "C:\ComfyUI-aki-v1.1\comfy\utils.py", line 13, in load_torch_file
if ckpt.lower().endswith(".safetensors"):

你好,出现了这个问题,是怎么回事呢?

none.gif

拳打嘤嘤怪

Error occurred when executing Efficient Loader:

'NoneType' object has no attribute 'lower'

File "C:\ComfyUI-aki-v1.1\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\ComfyUI-aki-v1.1\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\ComfyUI-aki-v1.1\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\ComfyUI-aki-v1.1\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 156, in efficientloader
model, clip, vae = load_checkpoint(ckpt_name, my_unique_id, cache=ckpt_cache, cache_overwrite=True)
File "C:\ComfyUI-aki-v1.1\custom_nodes\efficiency-nodes-comfyui\tsc_utils.py", line 246, in load_checkpoint
out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
File "C:\ComfyUI-aki-v1.1\comfy\sd.py", line 505, in load_checkpoint_guess_config
sd = comfy.utils.load_torch_file(ckpt_path)
File "C:\ComfyUI-aki-v1.1\comfy\utils.py", line 13, in load_torch_file
if ckpt.lower().endswith(".safetensors"):

你好,出现了这个问题,是怎么回事呢?

none.gif

拳打嘤嘤怪

回 19楼(拳打嘤嘤怪) 的帖子

已经找到了问题了

none.gif

薄幸

回 13楼(Ridley) 的帖子

从头再来了一遍,可以跑了。不过这个批处理后保存的 文件名乱掉了,大佬有没有办法让保存的图和原图文件名一样。万分感谢

1327522.jpg

Ridley

B22F  2024-05-03 03:16
(空的)

回 21楼(薄幸) 的帖子


none.gif

小a

B23F  2024-05-03 03:19
(aaa)
好,给你点了

none.gif

薄幸

顺便分享一下安装经验,启动器里的版本更新到最新版也不一定是最新的,如果还是遇到报错。可以直接卸载掉启动器版本改为从github安装。

none.gif

薄幸

回 22楼(Ridley) 的帖子

感谢大佬指点 我去试试

1748349.png

4091749d

技术贴 感谢分享

1327522.jpg

Ridley

B27F  2024-05-03 17:45
(空的)

回 24楼(薄幸) 的帖子

可以尝试直接在manager那里更新全部,单独节点还是报错的话可以在启动器里卸载重装

none.gif

零陵玲

回 楼主(Ridley) 的帖子

Error occurred when executing AIO_Preprocessor:

An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

File "D:\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux\__init__.py", line 117, in execute
return getattr(aux_class(), aux_class.FUNCTION)(**params)
File "D:\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux\node_wrappers\densepose.py", line 19, in execute
model = DenseposeDetector \
File "D:\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\densepose\__init__.py", line 27, in from_pretrained
torchscript_model_path = custom_hf_download(pretrained_model_or_path, filename)
File "D:\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\util.py", line 320, in custom_hf_download
model_path = hf_hub_download(repo_id=pretrained_model_or_path,
File "", line 52, in hf_hub_download_wrapper_inner
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\huggingface_hub\utils\_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\huggingface_hub\file_download.py", line 1371, in hf_hub_download
raise LocalEntryNotFoundError(
这是什么问题啊,大佬

none.gif

顾铭裔

技术贴 感谢分享

none.gif

顾铭裔

技术贴 感谢分享
  • «
  • 1
  • 2
  • 3
  • »
  • Pages: 1/3     Go