ComfyUI-PhotoMaker-ZHO
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
NEW_PhotoMaker_Generation
Documentation for NEW_PhotoMaker_Generation Node
Overview
The NEW_PhotoMaker_Generation node is a component of the ComfyUI-PhotoMaker implementation that facilitates the creation of images based on defined prompts and styles. It leverages the PhotoMaker pipeline to produce composite images by integrating user-defined preferences for prompts, styles, and various other parameters.
Functionality
The primary role of the NEW_PhotoMaker_Generation node is to generate images using a pre-trained model pipeline that merges input images with defined prompts and styles. This allows for the stylistic transformation of input images according to user specifications.
Inputs
The node accepts the following inputs:
-
Positive Prompt: A string input for defining the desired characteristics of the resulting image.
-
Negative Prompt: A string input that describes undesired elements to be minimized in the output image.
-
Batch Size: Specifies the number of images to generate in one batch. It allows values from 1 to 4.
-
Style Strength Ratio: A slider-based input ranging from 1 to 50 to control the influence of the style on the image.
-
Steps: An integer input ranging from 1 to 100 to determine the number of iterations the model goes through to generate the image.
-
Guidance Scale: A floating-point input from 0 to 10 that dictates the adherence to the prompt during the image generation process.
-
Width and Height: Integer inputs defining the dimensions of the generated image. Valid ranges are from 512 to 2048 pixels.
-
Seed: A seed value for random number generation to ensure reproducibility of results.
-
Model Pipeline (pipe): The pre-trained model pipeline used for image generation.
-
Preprocessed Image (pil_image): Input images that have been prepared for processing with the model.
Outputs
The output of the NEW_PhotoMaker_Generation node is:
- Generated Image: The composite image(s) created based on the given prompts, styles, and parameters, returned as tensor data. The output format is manipulated to ensure compatibility with downstream nodes in the workflow.
Use in ComfyUI Workflows
In ComfyUI workflows, the NEW_PhotoMaker_Generation node is typically used as a terminal step for image creation, where it combines processed input images with prompt and style information to produce the final images. It would be part of a larger workflow that includes setup nodes for loading models, preparing images, and defining prompts.
Special Features or Considerations
-
Style Integration: This node allows users to set a style strength ratio, which affects how strongly the selected style influences the generated image.
-
Parameter Flexibility: Inputs such as the guidance scale, number of steps, and batch size allow extensive customization for end users seeking specific image attributes.
-
Seed Reproducibility: The seed input ensures that users can reproduce images with the same characteristics by using the same configuration.
-
High Customizability: The variety of adjustable parameters, from style strength to pixel dimensions, ensures adaptability to diverse creative needs.
In summary, the NEW_PhotoMaker_Generation node is a powerful tool for generating customized images in the ComfyUI-PhotoMaker workflow, offering users the flexibility and control needed to produce high-quality visual outputs in alignment with specified prompts and styles.