Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] basic logic: for loops, conditional statements, event triggers #1412

Open
ScrewTSW opened this issue Sep 3, 2023 · 2 comments
Labels
Feature A new feature to add to ComfyUI.

Comments

@ScrewTSW
Copy link

ScrewTSW commented Sep 3, 2023

Why is it not possible to generate images sequencially in a for loop, or trigger next "batch" on latent image input that would work like infinite image generation?

Currently the only way to do something similar is to set a latent batch the max size your GPU VRAM can handle.

Why can't I have a workflow that runs a set amount of times sequentially or generates images until it's killed?

This prevents running the generation unattended over-night and in my opinion would be a really useful feature.

Another case for conditions is - img2img vs prompt input.

Why cannot I do branching logic in a single workflow that would behave differently based on whether I put a text prompt in or a source image?

@ltdrdata
Copy link
Collaborator

ltdrdata commented Sep 3, 2023

There is a draft related to loop.
#931

And this is just a Proof of Concept of loop capability, but you can use 'auto queue' to implement such loop applications.
(Link: https://www.youtube.com/watch?v=iLO0fg0SF9w)

@ScrewTSW
Copy link
Author

ScrewTSW commented Sep 3, 2023

There is a draft related to loop. #931

And this is just a Proof of Concept of loop capability, but you can use 'auto queue' to implement such loop applications. (Link: https://www.youtube.com/watch?v=iLO0fg0SF9w)

Thank you for the resources ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new feature to add to ComfyUI.
Projects
None yet
Development

No branches or pull requests

3 participants