A node to allow you to preview images and choose one or more to pass on to the rest of your workflow (as image or latent).
(shameless plug for my other work - want to make your workflow cleaner - check out UE Nodes. And leave a star if you like something!)
Here's part of a simple workflow | It's saved in this image |
---|---|
![]() |
![]() |
This uses only regular nodes and the Unified Chooser. If you're going to try the node out, please start with this - if it doesn't work, nothing more complicated will! And it's much easier to narrow down problems on a simple workflow!
Here's a workflow that illustrates use with both images and latents | Saved in this dog |
---|---|
![]() |
![]() |
2.7 (4 Dec 2023)
- various minor fixes
- use new JS deployment
- add setting to control position of the HUD
2.6 (17 Oct 2023)
- added the Preview Chooser Fabric
- fixed some bugs with cancelling
2.5.1 - 2.5.3 (13-14 Oct 2023)
- added a cancel button
- fixed the cancel in the main menu
- removed some possible causes of incompatibility with other custom nodes.
- click on images to select them
- eliminate the right-click menu
2.5 (13 Oct 2023)
- Major update to unify the chooser and preview nodes
When the workflow pauses in the Preview Chooser
, you click on the images to select / unselect them - selected images are marked with a green box. When there are one or more images selected, you can Progress selected images
to send them out. You can cancel the run from the right-click menu on the background canvas.
Once the run finishes you can Progress... (as restart)
to send one or more images on from the node (which has 'stashed' them).
You should always have the image input connected; if you have the latent input connected, the same latents are output as images (in the same order - which is actually the order in which you selected them). I very strongly suggest that you always pass the latents through the Preview Chooser
- the order of node execution, and the ability to restart, are much more reliable if you do.
As you can see from the workflow, it is possible now to have multiple choosers, and to mix and match image and latent choosers.
You can control the position of the HUD (in the top left) using the main settings menu.
It's tempting to think you could edit other widgets downstream before pressing 'go' (maybe you look at an image, and then decide what denoise factor to use downstream).
But the way ComfyUI works is that all the widget values get sent to the server at the start - so changes you make during a pause aren't applied to that run.
The exception is the chooser nodes themselves. They communicate directly with the server when you press 'go'. So their values when you started the run (which were sent to the server) are ignored in favour of the ones sent when you pressed 'go' to continue the workflow.
But you can change widgets and then do a Progress... (as restart)
This node is designed for use with the Fabric custom nodes, which allow you to pass latents you like and dislike from one iteration into a sampler which uses that information as a conditioning.
This node outputs two sets of latents, positive and negative. Click an image to add it to positive (green box), click again to add to negative (red box), again to clear.
Note that you must select at least one positive and one negative in the first round. At present you must also select at least one positive and one negative in subsequent rounds, but there's a PR on the Fabric nodes that will allow one of positive or negative to be empty - so this is permitted by the chooser.
Here's an example workflow. Note that you will need Use Everywhere Nodes to load this workflow - you can find them in the manager or install from here | An image with the workflow in |
---|---|
![]() |
![]() |
Note that restarting doesn't work very well (because of the dependance of the downstream nodes on all of the latents from previous choosers). It's ok, but not great.
Find it in Comfy Manager. Or:
cd [path to ComfyUI]/custom_nodes
git clone https://github.com/chrisgoringe/cg-image-picker.git
Comfy Manager. Or:
cd [path to ComfyUI]/custom_nodes/cg-image-picker
git pull
Raise an issue. Or give this repository a star.