ComfyUI  >  Nodes  >  ComfyUI PhotoMaker (ZHO) >  📷Ref Image Preprocessing

ComfyUI Node: 📷Ref Image Preprocessing

Class Name

Ref_Image_Preprocessing

Category
📷PhotoMaker
Author
ZHO-ZHO-ZHO (Account age: 340 days)
Extension
ComfyUI PhotoMaker (ZHO)
Latest Updated
5/22/2024
Github Stars
0.8K

How to Install ComfyUI PhotoMaker (ZHO)

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

📷Ref Image Preprocessing Description

Streamline preparation of reference images for AI art projects by converting and formatting images for workflow efficiency.

📷Ref Image Preprocessing:

The Ref_Image_Preprocessing node is designed to streamline the process of preparing reference images for further use in your AI art projects. This node offers flexibility by allowing you to either directly input images or specify a path to a folder containing images. It processes these images and converts them into a format that can be easily utilized by other nodes in your workflow. This preprocessing step is crucial for ensuring that your reference images are in the correct format and ready for subsequent operations, thereby enhancing the efficiency and effectiveness of your creative process.

📷Ref Image Preprocessing Input Parameters:

ref_images_path

This parameter specifies the path to the folder containing the reference images. It is a string input where you can provide the directory path. The default value is "path/to/images". This parameter is required when the mode is set to "path_Input". The images in the specified folder will be processed and converted into a usable format.

mode

This parameter allows you to choose the mode of input for the reference images. It offers two options: "direct_Input" and "path_Input". The default value is "direct_Input". When set to "direct_Input", you can directly input images through the ref_image parameter. When set to "path_Input", the node will process images from the directory specified in the ref_images_path parameter.

ref_image

This optional parameter allows you to directly input images for preprocessing. It accepts images in the form of tensors. This parameter is used only when the mode is set to "direct_Input". If provided, the node will process these images directly without needing a folder path.

📷Ref Image Preprocessing Output Parameters:

IMAGE

The output of this node is a list of preprocessed images. These images are converted into a format that can be easily used by other nodes in your workflow. The output ensures that the images are ready for further processing, enhancing the overall efficiency of your AI art creation process.

📷Ref Image Preprocessing Usage Tips:

  • When using the "path_Input" mode, ensure that the folder path provided in ref_images_path contains only the images you want to preprocess, and that they are in supported formats like .png, .jpg, .jpeg, .bmp, or .webp.
  • If you have a single image or a few images to preprocess, use the "direct_Input" mode and provide the images directly through the ref_image parameter for quicker processing.

📷Ref Image Preprocessing Common Errors and Solutions:

Invalid mode. Choose 'direct_Input' or 'path_Input'.

  • Explanation: This error occurs when an invalid mode is provided to the mode parameter.
  • Solution: Ensure that the mode parameter is set to either "direct_Input" or "path_Input".

No images found in the specified path.

  • Explanation: This error occurs when the ref_images_path does not contain any valid image files.
  • Solution: Verify that the folder path provided in ref_images_path contains images in supported formats and that the path is correct.

ref_image is required when mode is set to 'direct_Input'.

  • Explanation: This error occurs when the mode is set to "direct_Input" but no images are provided through the ref_image parameter.
  • Solution: Provide the images directly through the ref_image parameter when using the "direct_Input" mode.

📷Ref Image Preprocessing Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI PhotoMaker (ZHO)
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.