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-FeiHou-Toolbox > 多参图像自动拼接

ComfyUI Node: 多参图像自动拼接

Class Name

AutoRefCollage

Category
image/compositing
Author
FX-FeiHou (Account age: 2109days)
Extension
ComfyUI-FeiHou-Toolbox
Latest Updated
2026-08-25
Github Stars
0.13K

How to Install ComfyUI-FeiHou-Toolbox

Install this extension via the ComfyUI Manager by searching for ComfyUI-FeiHou-Toolbox
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-FeiHou-Toolbox 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

多参图像自动拼接 Description

Automatically creates collages by extracting reference people from images using SAM3 model, simplifying composite image generation for artists.

多参图像自动拼接:

The AutoRefCollage node is designed to automatically create a collage by extracting up to five reference people from images using the SAM3 model. This node simplifies the process of generating a composite image by automating the segmentation and arrangement of subjects within a collage. It is particularly useful for artists who want to create dynamic and visually appealing compositions without manually cutting and pasting elements. By leveraging advanced segmentation techniques, AutoRefCollage ensures that the extracted subjects are seamlessly integrated into the final collage, maintaining a cohesive and professional appearance. This node is ideal for projects that require quick and efficient collage creation, saving time and effort while delivering high-quality results.

多参图像自动拼接 Input Parameters:

model

This parameter specifies the SAM3 or SAM3.1 model used for segmentation. It is crucial for determining how accurately the subjects are extracted from the images. The model's performance directly impacts the quality of the collage, as a more advanced model can provide better segmentation results.

width

This parameter defines the width of the output collage. It accepts values ranging from 64 to 8192, with a default of 1280. Adjusting the width allows you to control the horizontal dimension of the collage, which can be important for fitting specific display requirements or artistic preferences.

height

This parameter sets the height of the output collage, with a range from 64 to 8192 and a default of 1280. Similar to the width, the height parameter allows you to customize the vertical dimension of the collage, ensuring it meets your project's needs.

detection_threshold

This parameter determines the SAM3 mask threshold after segmentation, with a default value of 0.5 and a range from 0.0 to 1.0. Lower values retain more edge details, while higher values remove weaker regions. Adjusting this threshold can help you achieve the desired level of detail and clarity in the extracted subjects.

多参图像自动拼接 Output Parameters:

collage

The collage output is the final composite image created by the node. It contains the extracted subjects arranged in a visually appealing manner, ready for use in various artistic projects. The quality and composition of the collage depend on the input parameters and the segmentation model used.

alpha_mask

The alpha_mask output provides a transparency mask for the collage, indicating which areas are opaque and which are transparent. This mask is useful for further editing or compositing, allowing you to seamlessly integrate the collage into other images or backgrounds.

多参图像自动拼接 Usage Tips:

  • Experiment with different detection_threshold values to find the optimal balance between detail retention and clarity for your specific images.
  • Use higher resolution settings for width and height to ensure that the collage maintains high quality, especially if it will be displayed in large formats.
  • Consider the lighting and background of your input images, as these factors can affect the segmentation quality and the overall appearance of the collage.

多参图像自动拼接 Common Errors and Solutions:

"prefix_track_data is not connected; prefix_image_mask is blank."

  • Explanation: This warning indicates that the prefix track data input is missing, resulting in a blank prefix image mask.
  • Solution: Ensure that the prefix track data is properly connected to provide the necessary input for generating the prefix image mask.

"prefix_image_mask contains only the background."

  • Explanation: This warning suggests that the prefix image mask is not correctly capturing the intended subjects, possibly due to incorrect input settings.
  • Solution: Check the prefix SAM3 track input, prompt, threshold, or initial mask settings to ensure they are configured correctly for accurate segmentation.

多参图像自动拼接 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-FeiHou-Toolbox
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.

多参图像自动拼接