ComfyUI  >  Nodes  >  ComfyUI Impact Pack >  Picker (SEGS)

ComfyUI Node: Picker (SEGS)

Class Name

ImpactSEGSPicker

Category
ImpactPack/Util
Author
Dr.Lt.Data (Account age: 458 days)
Extension
ComfyUI Impact Pack
Latest Updated
6/19/2024
Github Stars
1.4K

How to Install ComfyUI Impact Pack

Install this extension via the ComfyUI Manager by searching for  ComfyUI Impact Pack
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Impact Pack 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Picker (SEGS) Description

Select specific segments from segmented images based on criteria, handling fallback images for refined data management.

Picker (SEGS):

The ImpactSEGSPicker node is designed to help you select specific segments from a set of segmented images. This node is particularly useful when you have multiple segments and need to isolate or focus on certain ones based on your criteria. It allows you to provide a list of segment IDs to pick, and it will return only those segments, making it easier to work with large sets of segmented data. Additionally, it can handle fallback images to ensure that segments are properly cropped and masked, even if some segments are missing cropped images. This node is essential for refining and managing segmented image data, ensuring that you can focus on the most relevant parts of your images.

Picker (SEGS) Input Parameters:

picks

This parameter is a string that contains a comma-separated list of segment IDs you want to select. Each ID corresponds to a specific segment in the segmented image data. The IDs should be integers, and they are 1-based, meaning the first segment is represented by the number 1. This parameter is crucial for specifying which segments you want to isolate from the entire set.

segs

This parameter represents the segmented image data, which is a tuple containing the original image shape and a list of segment objects. Each segment object includes information such as the cropped image, cropped mask, confidence score, and crop region. This parameter is essential as it provides the data from which the node will pick the specified segments.

fallback_image_opt

This optional parameter is an image that can be used as a fallback in case some segments do not have cropped images. If provided, the node will use this image to generate cropped images for those segments. This ensures that all segments have corresponding cropped images, even if they were not initially available.

unique_id

This optional parameter is a unique identifier used to store the generated candidate images in a map. This can be useful for tracking and managing the candidate images generated during the segment picking process.

Picker (SEGS) Output Parameters:

segs

The output parameter is a tuple containing the original image shape and a list of the selected segment objects. Each segment object includes the cropped image, cropped mask, confidence score, and crop region. This output allows you to work with a refined set of segments based on your specified criteria, making it easier to focus on the most relevant parts of your images.

Picker (SEGS) Usage Tips:

  • Ensure that the picks parameter contains valid segment IDs, and remember that the IDs are 1-based.
  • If some segments do not have cropped images, consider providing a fallback_image_opt to ensure all segments have corresponding cropped images.
  • Use the unique_id parameter to manage and track candidate images if you are working with multiple sets of segmented data.

Picker (SEGS) Common Errors and Solutions:

Invalid segment ID in picks

  • Explanation: The picks parameter contains an invalid segment ID that does not correspond to any segment in the segmented image data.
  • Solution: Ensure that all segment IDs in the picks parameter are valid and within the range of available segments.

Missing cropped image for segment

  • Explanation: Some segments do not have cropped images, and no fallback_image_opt is provided.
  • Solution: Provide a fallback_image_opt to ensure that all segments have corresponding cropped images.

Invalid unique_id

  • Explanation: The unique_id parameter is not unique or is missing, causing issues with tracking candidate images.
  • Solution: Ensure that the unique_id parameter is unique for each set of segmented data you are working with.

Picker (SEGS) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Impact Pack
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.