Skip to content

Using type to get nodes dependencies is a big problem when multiple custom nodes can have the same type. #2666

@skarone

Description

@skarone

I'm trying to use the cm-cli to get the dependencies of a workflow
python $ROOT/custom_nodes/ComfyUI-Manager/cm-cli.py deps-in-workflow --workflow $SCRIPT_ROOT/default_workflow.json --output $SCRIPT_ROOT/default_workflow_deps.json

And there is a node of type: SDXLPromptStyler which is returning https://github.com/regiellis/ComfyUI-SDXL-Adherence as the node dep.. but actually it should be https://github.com/twri/sdxl_prompt_styler . Seems that both custom nodes have that type registered.

I think the code should use properties.cnr_id to get the custom node.

node_name = x.get('type')

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions