ComfyUI-list-filter

ComfyUI-list-filter
★ 1

图像列表过滤字符串过滤索引转换ComfyUI 节点
用于在ComfyUI工作流中便捷地过滤图像或字符串列表,能把Image-Selector生成的selected_indexes字符串转换为可用索引,方便连接需要索引的节点。
💡 将Image-Selector的selected_indexes字符串转换为索引并过滤图像列表。
🍴 3 Forks💻 Python🔄 2025-03-28
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/9d76119b2ef2
example
📄 README

ComfyUI-list-filter

https://registry.comfy.org/nodes/comfyui-list-filter

Custom nodes for convenient filtering image or string lists in ComfyUI workflow.

Motivation: By using ComfyUI-Image-Selector in ComfyUI, it is possible to create a workflow that selects images and performs additional processing. However, the selected_indexes obtained in this process are strings, which cannot be directly connected to nodes that require indices. ComfyUI-list-filter was created to facilitate the creation of such complex workflows.

ComfyUI-list-filter provides nodes that convert string indices to integer lists and retrieve elements from string or image lists based on specified indices. Additionally, when combined with ComfyUI-WD14-Tagger, ComfyUI-list-filter provides nodes that are useful for extracting lists of images with specified tags from tagged image lists.

More generally, ComfyUI-list-filter provides convenient nodes for filtering lists in ComfyUI workflow.

Example

The sample workflow is in the example directory.

Custom nodes

  • Index List From String – Splits a string into a list of indices based on the provided delimiter.
  • Filter String List – Filters the string list based on the provided index list.
  • Filter Image List – Filters the image list based on the provided index list.
  • Find Any Strings – Checks if any of the search strings are present in the string list and return indices.
  • Find Not Any Strings – Checks if none of the search strings are present in the string list and return indices.
  • Random Normal Distribution – Generates random samples float list from a normal distribution.
  • Changelogs

    See GitHub Releases.