ComfyUI > Nodes > ComfyUI-Portrait-Maker > RatioMerge2Image PM

ComfyUI Node: RatioMerge2Image PM

Class Name

PM_RatioMerge2Image

Category
protrait/other
Author
THtianhao (Account age: 3700days)
Extension
ComfyUI-Portrait-Maker
Latest Updated
2024-05-22
Github Stars
0.17K

How to Install ComfyUI-Portrait-Maker

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

RatioMerge2Image PM Description

Blend two images based on fusion rate for seamless merging, control image prominence for smooth transitions in composite images.

RatioMerge2Image PM:

The PM_RatioMerge2Image node is designed to blend two images together based on a specified fusion rate. This node is particularly useful for creating composite images where elements from two different sources need to be seamlessly merged. By adjusting the fusion rate, you can control the prominence of each image in the final output, allowing for a smooth transition between the two. This capability is essential for tasks such as image morphing, artistic blending, and creating unique visual effects. The node ensures that the blending process is intuitive and accessible, even for users without a deep technical background.

RatioMerge2Image PM Input Parameters:

image1

image1 is the first input image that will be blended with the second image. This image serves as one of the primary sources for the composite output. The quality and resolution of this image will directly impact the final result.

image2

image2 is the second input image that will be blended with the first image. Like image1, this image is a crucial component of the final composite image. The characteristics of this image will influence the overall appearance of the blended output.

fusion_rate

fusion_rate is a floating-point value that determines the blending ratio between image1 and image2. The value ranges from 0 to 1, with a default value of 0.5. A fusion rate of 0 means the output will be entirely image1, while a fusion rate of 1 means the output will be entirely image2. Intermediate values will produce a mix of both images, with the fusion rate controlling the relative contribution of each image to the final result.

RatioMerge2Image PM Output Parameters:

IMAGE

The output parameter is an IMAGE that represents the blended result of image1 and image2 based on the specified fusion_rate. This composite image combines elements from both input images, creating a seamless blend that reflects the chosen fusion ratio. The output image can be used for further processing or as a final product in various artistic and design applications.

RatioMerge2Image PM Usage Tips:

  • Experiment with different fusion_rate values to achieve the desired balance between the two images. Small adjustments can significantly change the visual outcome.
  • Ensure that image1 and image2 have similar resolutions and dimensions for the best blending results. Mismatched sizes may lead to unexpected artifacts.
  • Use this node in combination with other image processing nodes to enhance the final output, such as applying filters or adjustments before blending.

RatioMerge2Image PM Common Errors and Solutions:

No face was recognized in the source image / source image 没有识别到人脸

  • Explanation: This error occurs when the node fails to detect any faces in the source image.
  • Solution: Ensure that the source image contains clear and visible faces. Adjust the image quality or use a different image with more prominent facial features.

No face was recognized in the swap faces / swap faces没有识别到人脸, 用原脸替换!!!!!!!!!

  • Explanation: This warning indicates that no faces were detected in the swap image, and the original face will be used instead.
  • Solution: Verify that the swap image contains clear and visible faces. If necessary, use an image with better facial visibility or adjust the image quality.

Unsupported blend mode: <mode>

  • Explanation: This error occurs when an invalid blend mode is specified.
  • Solution: Ensure that the blend mode is one of the supported options: "normal", "multiply", "screen", "overlay", "soft_light", or "difference". Double-check the blend mode parameter for any typos or incorrect values.

RatioMerge2Image PM Related Nodes

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