Closed Bocian-1 closed 1 year ago
Latent to Size should give your latent size which won't be pixel related, as far as I remember.
Switches are switches, not on/offs either A or B passes based on boolean. That's a comfy issue. I have no control over ComfyUI from backend custom nodes to tell it not to execute things. There is a whole lot missing for custom nodes, like ability to even output some basic text to a node.
Oh, so the size is actually different in latent space? My bad for assuming otherwise then. I thought I used a similar node before and it did output the same size as normal, but checking with a different one now it's as you say so I must be remembering things wrong.
Just for clarification with the on/off thing I meant a structure like this: So in this example, it's one input (image), and a bunch of nodes for processing it and outputting the processed image. The switch just decides whether the output of the whole structure is the processed or unprocessed input. So not literally an on/off, but something similar.
No worries though, I figured it would probably be an issue with ComfyUI itself, but couldn't help asking just in case.
Great thanks for clarifying things for me. And also for putting in all the work to make the custom nodes. I really cannot overstate how helpful they are.
Well if it is just two image inputs it should switch to either or based on 0/1 boolean input. So either input or result. But yeah I can't tell upstream not to actually do the processing up to that point which is annoying, especially when it is a huge post processing tree.
Always outputs 64 in both width and height. Image Size to Number is fine
Also as a side note: When using the logic switches, all nodes before it get executed even if their output is not passed through the switch. For example, if I wanted to create an on/off switch for something like face restoration, even in the off-state, all these nodes still are executed, wasting a significant amount of time. On the contrary, a simple switch using ComfyUI's reroute nodes where you choose the output by reconnecting the nodes works just fine and none of the nodes that remain unused are ever executed: This, however, lacks the versatility of being able to control multiple such switches with a single logic boolean that your nodes offer. Wouldn't it be possible to emulate a reroute switch switching connections based on the logic boolean to get the best of both worlds?
Edit: found a typo in Image Remove Background (Alpha) node: output is named 'iamges' instead if 'images'