pydn / ComfyUI-to-Python-Extension

A powerful tool that translates ComfyUI workflows into executable Python code.
MIT License
1.08k stars 113 forks source link

Plugin nodes not working? #5

Closed joshnajera closed 1 year ago

joshnajera commented 1 year ago

Any idea if this is possible? I'd love to make a script utilizing controlnet in the workflow, however running the script generator produces an error:

Traceback (most recent call last):
  File "D:\ComfyUI_windows_portable\ComfyUI\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 333, in <module>
    main(input, queue_size)
  File "D:\ComfyUI_windows_portable\ComfyUI\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 324, in main
    load_order = determine_load_order(prompt)
  File "D:\ComfyUI_windows_portable\ComfyUI\ComfyUI-to-Python-Extension\comfyui_to_python.py", line 112, in determine_load_order
    class_def = NODE_CLASS_MAPPINGS[data[key]['class_type']]()
KeyError: 'OpenposePreprocessor'
pydn commented 1 year ago

Currently, the extension does not work with custom nodes, but that's the next addition on my roadmap.

pydn commented 1 year ago

Would you mind linking what custom node you are using for this? I can use that for testing.

joshnajera commented 1 year ago

Awesome! Tested out without plugins and it works!

The one in particular I'm trying to get to work is: https://github.com/Fannovel16/comfy_controlnet_preprocessors

But another really popular one is this: https://github.com/ltdrdata/ComfyUI-Impact-Pack

pydn commented 1 year ago

Ok amazing. Glad you got it working. And I'll take a look at those plugins when testing. I'll post updates on my progress here. I'm hoping I can get some solid work in this weekend.

pydn commented 1 year ago

Hey @joshnajera, I just pushed support for custom nodes and tested with the Impact Pack and SergeSDXL. Update the extension and let me know if you run into any issues with custom nodes.