ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

add batch count to the menu

Open m957ymj75urz opened this issue 2 years ago • 6 comments

Screenshot_20230309_180455

Allows user to specify the number of batches to queue instead of click spamming the queue button.

m957ymj75urz avatar Mar 09 '23 17:03 m957ymj75urz

Wouldn't this be better as a right click menu on the queue button with options to: queue 10x, queue 100x, queue 1000x?

comfyanonymous avatar Mar 09 '23 17:03 comfyanonymous

I would say it's better to have full control on this instead of predefined options. When testing a workflow for example, the number of prompt I queue depends of the time it takes for it to execute so sometimes x10 might be fine but sometimes it's 5 or 7...

m957ymj75urz avatar Mar 09 '23 18:03 m957ymj75urz

What about having a split button type thing [ Queue Prompt | v ]

clicking the down arrow shows a little menu with Queue 5, Queue 10, queue 100, queue X

clicking queue X asks for how many (can use prompt("how many do you want to queue") unless you want to write a popup asking)

pythongosssss avatar Mar 09 '23 19:03 pythongosssss

I think your solution @pythongosssss would not work well with the fact we also have another button to "Queue front" meaning we would still need an input to read the value or duplicate the menu to the other button as well. I added a range input [1;100], I think this is a good compromise between full control, having a quick way to bump the count and UX. What do you think ?

Screenshot_20230310_103630

You can still input 5000 manually, this won't be clamped by the range of the slider.

m957ymj75urz avatar Mar 10 '23 09:03 m957ymj75urz

It works great, can you put it below the "Queue Prompt" button and hide it behind a "extra options" toggle?

comfyanonymous avatar Mar 14 '23 06:03 comfyanonymous

Screenshot_20230314_081707 Screenshot_20230314_081725

m957ymj75urz avatar Mar 14 '23 07:03 m957ymj75urz