BlenderNeko / ComfyUI_ADV_CLIP_emb

ComfyUI node that let you pick the way in which prompt weights are interpreted
GNU General Public License v3.0
319 stars 29 forks source link

AdvancedCLIPTextEncode node types were not found #6

Open Natotela opened 1 year ago

Natotela commented 1 year ago

Any thought on why I keep getting this error and red node even after I rm and git cloned this repo again?

When loading the graph, the following node types were not found:
AdvancedCLIPTextEncode
Nodes that have failed to load will show as red on the graph.
BlenderNeko commented 1 year ago

I had to do some name changes a little while ago, which unfortunately isn't backwards compatible. So now some old workflows contain names that no longer match the new names and thus comfy won't be able to resolve those nodes. If you go into the json and replace AdvancedCLIPTextEncode with BNK_CLIPTextEncodeAdvanced it should be able to resolve the nodes just fine again.

Natotela commented 1 year ago

lol I actually realized I can do that and now I see your solution :-D

even had bingy give me the code to do that to other files if necessary:

import sys

filename = sys.argv[1]

with open(filename, 'r') as file:
    data = file.read()

data = data.replace('AdvancedCLIPTextEncode', 'BNK_CLIPTextEncodeAdvanced')

with open(filename, 'w') as file:
    file.write(data)

comfyUI is cool and intriguing yet it is still so fragmented, pieced out and between

As for now I'd advice any newcomer to 1- mind the cleanup_temp() calls in main.py, in case you wish to save the /temp B-sides that is not the supposedly royal end-result /output 2- get the Custom Nodes Manager 3- mklink everything. Loras, CKPTs, Upscalers - centralize the heavy files which serve several masters.