ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Node to "cancel" on the fly?

Open ryo0ka opened this issue 1 year ago • 0 comments

I want to cancel the rendering (aka. discard and move on to the next batch) before the workflow proceeds to time-consuming nodes (ie. upscaling/post-effect etc) in case the initial low-res rendering failed to fulfill certain requirements.

I'm running an overnight batch of 1000+ images and about 30% of them "fail". Obviously I can either improve the prompt/workflow or manually filter out faulty outputs, but that takes time.

I have found an "image-to-text" node using deep danbooru, which I think can be used to "evaluate" images based on the presence of keywords in the output text. Thing is, I can't find any nodes to perform "if a string contains a certain string, cancel the process and move on to the next batch". Is that possible?

ryo0ka avatar May 08 '24 04:05 ryo0ka