2025-01-31 11:12:22 +11:00
2025-01-05 15:49:15 +11:00
v1
2025-01-05 13:54:06 +11:00
2025-01-30 18:01:04 +11:00
2025-01-30 16:34:25 +11:00
2024-12-27 10:54:53 +11:00
2024-12-27 10:54:53 +11:00
2025-01-31 11:12:22 +11:00
2024-12-27 10:54:53 +11:00
2025-01-30 16:34:25 +11:00
2025-01-30 16:34:25 +11:00

cg-image-filter

A set of four nodes designed to pause execution of the workflow to allow you to make selections and/or edits before continuing.

Image Filter

The image filter node pauses execution of the workflow while you choose which, if any, of the images produced, you want to progress.

Insert it like this:

image

When you run the workflow, and get to this point, a popup window will appear displaying the image(s) for you to select which, if any, you want to progress:

image

Click the images that you want to keep (their border will turn green) and then click 'Send' (or press 's') to continue the workflow. If you don't want to keep any of the images, click 'Cancel' (or press 'x') to terminate the workflow.

The node also has a timeout specified, and a countdown is shown on the left hand side. If you don't Send or Cancel before the timeout, the node will either cancel or send all the images, depending on the option you have selected.

Here's a simple use: generate a batch of images and pick which ones you want to save:

workflow

Extra bits

The "Click to send" option can be used when you know you want to send at most one image. When checked, clicking an image selects it and sends it in a single action.

The Latent and Mask inputs are optional. If used, they should have the same number of latents (or masks) as the image batch, and the latents (or masks) corresponding to the selected images will also be output. Use this if (for instance) you want to select from a batch of images, but the next stage uses the latent - that way you avoid the decode-recode loss.

Mask Image Filter

Designed for a single image, when executed the Mask Image Filter node will automatically launch the mask editor.

mask

When you finish mask editing the image and mask will be output. Here's a simple use - generate an image, and then mask the bit you don't like, before doing an img2img step.

mask workflow

Again, there is a timeout, and if you don't save a mask before the end of the timeout (or if you press the cancel button in the mask editor), it will either cancel, or send a blank mask, depending on the option chosen.

Text Image Filter

Also designed for a single image, this node will show the image and a string of text; you can edit the text and then press send.

text

The image and (edited) text are output. The intended use is for captioning workflows; you can read and edit each caption as it is generated. Here's a trivial workflow:

text workflow

Text Image Filter with Extras

Just like the Text Image Filter, but with three extra text fields, intended for short form - like specifying the denoising you want on the next step.

They are all strings, so you'll probably need to run the output through some sort of conversion node.

Feedback

Bugs and ideas welcome in the GitHub

S
Description
No description provided
Readme Apache-2.0
8.3 MiB
Languages
JavaScript 53.1%
Python 41.7%
CSS 5.2%