Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-CustomNodeKit > Reference Image Selector (参考图选择器)

ComfyUI Node: Reference Image Selector (参考图选择器)

Class Name

ReferenceImageSelector

Category
CustomNodes/SDPose
Author
user2318 (Account age: 2574days)
Extension
ComfyUI-CustomNodeKit
Latest Updated
2026-07-16
Github Stars
0.05K

How to Install ComfyUI-CustomNodeKit

Install this extension via the ComfyUI Manager by searching for ComfyUI-CustomNodeKit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-CustomNodeKit in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Reference Image Selector (参考图选择器) Description

Streamline selection and organization of reference images based on angles for AI artists, optimizing image arrangement and productivity.

Reference Image Selector (参考图选择器):

The ReferenceImageSelector node is designed to streamline the process of selecting and organizing reference images based on their angles. This node is particularly beneficial for AI artists who work with multiple reference images from different perspectives and need to filter and sort them efficiently. By utilizing an angle map, the node can determine the optimal arrangement of images, ensuring that the most relevant images are prioritized according to specified angles. This functionality is crucial for tasks that require precise image alignment or comparison, such as pose estimation or 3D modeling. The node's ability to handle both filtering and sorting operations makes it a versatile tool in any AI artist's workflow, enhancing productivity and ensuring that the best reference images are always at the forefront.

Reference Image Selector (参考图选择器) Input Parameters:

reference_images

This parameter accepts a batch of reference images that you wish to filter and sort based on their angles. The images should be provided in a format that allows the node to process them effectively. The primary function of this parameter is to serve as the dataset from which the node will select the most relevant images according to the specified angle map. There are no specific minimum or maximum values for this parameter, but it is essential to ensure that the images are of sufficient quality and relevance to your task.

angle_map

The angle_map parameter is a JSON string that specifies the angles or ranges associated with each reference image. This map is crucial for the node's filtering and sorting operations, as it determines how each image is evaluated and prioritized. The default value is an empty string, and it is important to ensure that the JSON format is correct and that the angles correspond accurately to the images provided. This parameter allows for precise control over the selection process, enabling you to tailor the output to your specific needs.

yaw_angles

This optional parameter is an array of float values representing the target yaw angles for each frame. The yaw_angles parameter is used to filter the reference images to find the best match based on the specified angles. The values can range from -180.0 to 180.0, with a default of 0.0. This parameter is particularly useful when you need to align images with a specific orientation, ensuring that the selected images match the desired perspective.

select_references

The select_references parameter is a boolean option that determines whether the node should filter and sort the reference images or only sort them. When set to True, the node will perform both filtering and sorting based on the angles, while setting it to False will result in sorting only, without filtering. The default value is True, and this parameter allows you to control the level of processing applied to the reference images, depending on your requirements.

background_images

This optional parameter allows you to provide a batch of background images that will be appended after the selected reference images. The inclusion of background images can enhance the visual context of the output, making it more comprehensive. There are no specific constraints on this parameter, but it is important to ensure that the background images are relevant and complement the reference images effectively.

Reference Image Selector (参考图选择器) Output Parameters:

selected_images

This output consists of the reference images that have been filtered and sorted according to the specified angles. The selected_images are arranged in a manner that prioritizes the most relevant images, ensuring that they are ready for further processing or analysis. This output is crucial for tasks that require precise image alignment or comparison.

raw_reference_images

The raw_reference_images output provides the original reference images without any sorting or filtering applied. This output is useful for maintaining a complete set of images for reference or for use in other processes that may require the original order and content.

info

The info output contains debugging and status information related to the node's operations. This information can be invaluable for troubleshooting and understanding the node's behavior, providing insights into the filtering and sorting process and any issues that may have arisen.

reference_angle_map

This output provides the validated angle map in JSON format, which can be used for further processing or as a reference for other nodes or operations. The reference_angle_map ensures that the angles used in the selection process are accurately represented and can be reused or modified as needed.

Reference Image Selector (参考图选择器) Usage Tips:

  • Ensure that your angle_map JSON is correctly formatted and accurately represents the angles associated with each reference image to achieve optimal filtering and sorting results.
  • Utilize the select_references parameter to control the level of processing applied to your images, depending on whether you need both filtering and sorting or just sorting.
  • Consider providing background_images to enhance the visual context of your output, especially if the reference images are intended for presentation or further analysis.

Reference Image Selector (参考图选择器) Common Errors and Solutions:

"参考图为空"

  • Explanation: This error occurs when the reference_images parameter is empty or not provided.
  • Solution: Ensure that you have supplied a valid batch of reference images for processing.

"yaw_angles 未接入, 直接输出全部参考图"

  • Explanation: This message indicates that the yaw_angles parameter is not connected, resulting in the output of all reference images without filtering.
  • Solution: Connect the yaw_angles parameter if you wish to filter images based on specific yaw angles.

"angle_map 无效, 直接输出全部参考图"

  • Explanation: This error suggests that the angle_map is invalid or not correctly formatted, leading to the output of all reference images without sorting.
  • Solution: Verify that your angle_map JSON is correctly formatted and corresponds to the reference images provided.

Reference Image Selector (参考图选择器) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CustomNodeKit
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Reference Image Selector (参考图选择器)