chflame163 / ComfyUI_LayerStyle

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
MIT License
1.24k stars 68 forks source link

node types were not found【节点类型找不到】 #142

Closed jimwang2019 closed 3 months ago

jimwang2019 commented 3 months ago

兄弟,帮一下忙,这两个节点类型找不到。 When loading the graph, the following node types were not found:

LayerColor: Brightness Contrast LayerColor: Color of Shadow Highlight

jimwang2019 commented 3 months ago

我看了源码,两个文件的文件名中间,都有&连接符号,是这个原因吗?

chflame163 commented 3 months ago

我看了源码,两个文件的文件名中间,都有&连接符号,是这个原因吗?

有可能是这个原因,已修改文件名。谢谢提醒。

jimwang2019 commented 3 months ago

我看了源码,两个文件的文件名中间,都有&连接符号,是这个原因吗?

有可能是这个原因,已修改文件名。谢谢提醒。

兄弟,我看了两个文件中的源码,只是改文件名应该是不行的,您再看看如何?Mapping 中,NODE还是有&号,这样肯定找不到对应的节点啊,您只改了文件名,Adapter返回的是node_type是没有&的,自然找不到node_type

你的源码: NODE_CLASS_MAPPINGS = { "LayerColor: ### Brightness & Contrast": ColorCorrectBrightnessAndContrast }

NODE_DISPLAY_NAMEMAPPINGS = { "LayerColor: **### Brightness & Contrast_**": "LayerColor: Brightness & Contrast" }

我重新下载了,还是同样的错误提示,问题应该是在这里吧?

jimwang2019 commented 3 months ago

ini文件中,根据文件格式,这个node name 应该是 'BrightnessAndContrast':'xxxxxx',这里根据‘Brightness & Contrast’来找,肯定找不到啊,不知道理解对不对?

chflame163 commented 3 months ago

ini文件中,根据文件格式,这个node name 应该是 'BrightnessAndContrast':'xxxxxx',这里根据‘Brightness & Contrast’来找,肯定找不到啊,不知道理解对不对?

不,那只是名称映射的字符串而已。并且那个字符串已经不能改动了,改了老用户会骂人的。我在window环境下使用,没有任何名称问题。

jimwang2019 commented 3 months ago

ini文件中,根据文件格式,这个node name 应该是 'BrightnessAndContrast':'xxxxxx',这里根据‘Brightness & Contrast’来找,肯定找不到啊,不知道理解对不对?

不,那只是名称映射的字符串而已。并且那个字符串已经不能改动了,改了老用户会骂人的。我在window环境下使用,没有任何名称问题。

我现在我本地改节点配置,麻烦您指导一下,是修改哪个文件?我改了workflow里面的layer_color_title.json和layerstyle_all_nodes.json这两个文件,好像都不行。 辛苦您啦。

1247862674 commented 1 month ago

这个需要怎么解决 ?节点安装没有其他异常 image

shenboxy commented 1 month ago

我也是这个问题,看了楼上的没有找到答案

jimwang2019 commented 1 month ago

我也是这个问题,看了楼上的没有找到答案

这个需要怎么解决 ?节点安装没有其他异常 image

先确认,Brightness Contrast是否安装成功,我的更新后,安装成功了,不过还是显示红色,所以我删除原节点后,重新import,不影响使用,下次reload comfyui时,没有错误提示。