You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JohnWL edited this page Jan 9, 2024
·
35 revisions
You can implement ComfyUI custom nodes into other webui extensions. Upon startup, sd-webui-comfyui will scan the webui extensions and inject the nodes of enabled extensions into comfyui.
Note that ComfyUI nodes implemented in Webui extensions can only be loaded into ComfyUI if the user launches ComfyUI with sd-webui-comfyui.
Custom nodes should always be implemented directly into ComfyUI-folder/custom_nodes if possible.
It can be useful to implement nodes in Webui extensions if they really need the Webui as a dependency.
Here is the directory structure expected by the custom node scanner:
So, sd-webui-comfyui will scan for any of these 3 paths in your extension:
comfyui_custom_nodes/ contains python custom nodes. This is usually where the backends of the nodes are implemented. Here is an example from the comfyui repo.
comfyui_custom_scripts/ contains any additional javascript code you want comfyui to statically serve.
comfyui_custom_scripts/extensions/ contains javascript code for custom extensions. This is usually where you add your own custom ui elements. Here is an example from the comfyui repo