Comfy-Org / Comfy-Org/ComfyUI

Node to "cancel" on the fly?

Open
#3,425 0 comments 1 reaction 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.