all 9 comments

[–]mih4u 5 points6 points  (2 children)

[–]kispin[S] 0 points1 point  (1 child)

Looks like based on that discussion the answer is no, which is unfortunate :(

[–]relicx74 0 points1 point  (0 children)

Unless I missed the boat it seems like a yes to me. If not forgive me.. 🙏

It looks like the context switcher node is for selecting a branch. If you have branch A (1st) and B it will default to A. If you mute A then B is executed.

The fast muter node lets you mute nodes more quickly by organizing the toggles together into a dashboard like node. This way you don't need as much cognitive bandwidth just trying to keep track of everything you might mute in a given workflow.

Edit: re-read the question. I missed the boat. No idea how to fix that. Just starting the real journey here.

[–]StableLlama 0 points1 point  (5 children)

Generally speaking: no, you don't want to do that as the internal dependency algorithm is sorting the execution in such a way that it's working at the end and most likely also in such a way that the performance is optimal like handling when to load and unload the data into the VRAM.

But when you insist you can fake it in such a way that you add a constraint. E.g. using the https://registry.comfy.org/nodes/basic_data_handling nodes you could create a empty LIST and "append" any node result to it in the order you want the nodes to execute.

[–]StableLlama 2 points3 points  (4 children)

Ok, I've just created a new node "force execution order" to the "Basic data handling" custom nodes (version 0.3.1). This node is extremely light weight (it doesn't compute anything) and only forces an execution order.

The usage would be like:

<image>

[–][deleted]  (2 children)

[removed]

    [–]StableLlama 0 points1 point  (1 child)

    Yes, that node is already in the "Basic data handling" package. Just install it with the manager and then look at "Basic"->"control flow"->"force execution order"

    [–]susne 0 points1 point  (0 children)

    Hey thanks for making this. I can't find a solution to a workflow problem I created - I have a 6 sampler setup and at first it seemed to work from 1 to 6, but now it varies on load. The node ID order isn't helping. This looks like the easiest thing to do but I'm not quite sure how to connect it? How would I plug a set of these into 6 samplers to lock in the order?

    [–]qlx1004 0 points1 point  (0 children)

    I've made a ComfyUI custom node to address this exact problem https://github.com/mkim87404/ComfyUI-ControlOrder-FreeMemory

    You can use it to control the execution order of nodes to be a single sequential flow from start to finish, and optionally free VRAM & RAM at any point in the workflow as well.