rgthree-comfy icon indicating copy to clipboard operation
rgthree-comfy copied to clipboard

Fast Group Muter/Bypass - Not appearing on API json file

Open SilverRaven03 opened this issue 1 year ago • 7 comments

Would be great if the Fast Group Muter/Bypass would appear in the .json saved workflow for API, I saw that several nodes in the past didn't appear there and now some are doing so but not this particular node.

SilverRaven03 avatar Jan 22 '24 11:01 SilverRaven03

Fast Muter, etc. are what's called a "virtual node", which is a node that is only in the UI and the backend doesn't need in order to evaluate the prompt, thus, when ComfyUI sends the graph to the backend via the API, it skips this (and other) virtual nodes.

When you "save as API" it uses this same mechanism; the json is what the backend recieves.

I'm curious what the reason to be fore this nodes to be sent to the backend?

rgthree avatar Jan 24 '24 01:01 rgthree

You're completely right, I understood later that anything bypassed in the workflow will just not appear in the API .json, just trying to find an appropriate way to be able to run a workflow via API where the same workflow can be used to run two different paths chosen by a integer. This all without give an error as some custom nodes seem to give an error when the execution path is cut by a simple "If" node or "Switch" node.

SilverRaven03 avatar Feb 12 '24 09:02 SilverRaven03

@SilverRaven03 Did you found a solution ?

julien-blanchon avatar Mar 02 '24 19:03 julien-blanchon

@SilverRaven03 Did you found a solution ?

I'm also interested in this.

kasukanra avatar Apr 12 '24 11:04 kasukanra

@rgthree Because I want comfyui to dynamically modify the json data automatically by changing the value of the node on the back end

niyuanfa avatar Jun 06 '24 07:06 niyuanfa

still curious about this, i know there is talks of a pull request to reverse the flow making this supported, but is there currently any way to an export an API json that would allow me to do things like conditionally choose to bypass the time associatedwith loading models, i.e. controlnet, lora, ipadapter, upscaler?

I want a workflow that has all of these things in it already, but can be lean and fast if i don't need them

drmbt avatar Jul 14 '24 14:07 drmbt

still curious about this, i know there is talks of a pull request to reverse the flow making this supported, but is there currently any way to an export an API json that would allow me to do things like conditionally choose to bypass the time associatedwith loading models, i.e. controlnet, lora, ipadapter, upscaler?

I want a workflow that has all of these things in it already, but can be lean and fast if i don't need them

I've been using very cumbersome Switch Any based workflows (from Crystools) but this would be far superior, even if it just means being able to convert the Fast Muter widgets to inputs and manipulate it from elsewhere

stephennilor avatar Aug 06 '24 03:08 stephennilor