ComfyUI > Nodes > ComfyUI-Florence-2 > Florence2

ComfyUI Node: Florence2

Class Name

Florence2

Category
Florence2
Author
spacepxl (Account age: 303days)
Extension
ComfyUI-Florence-2
Latest Updated
2024-06-29
Github Stars
0.04K

How to Install ComfyUI-Florence-2

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

Florence2 Description

Versatile image processing node leveraging Florence2 model for object detection, segmentation, and metadata generation.

Florence2:

Florence2 is a versatile node designed to process images using the Florence2 model, which is a powerful tool for various image-related tasks. This node allows you to apply the Florence2 model to an image, perform specific tasks such as object detection or image segmentation, and generate results that include processed images and relevant metadata. The primary goal of Florence2 is to provide a seamless and efficient way to leverage the capabilities of the Florence2 model, making it easier for AI artists to enhance their creative projects with advanced image processing techniques.

Florence2 Input Parameters:

FLORENCE2

This parameter expects a Florence2 model object, which includes the model, processor, version, and device information. It is essential for the node to function correctly as it provides the necessary components to process the image.

image

This parameter takes an image input that you want to process using the Florence2 model. The image should be in a compatible format and will be used as the primary data for the processing task.

task

This parameter specifies the task you want to perform on the image. It can include options such as object detection, image segmentation, or other tasks supported by the Florence2 model. The task parameter determines the type of processing that will be applied to the image.

text_input

This parameter allows you to provide additional text input that may be required for certain tasks. For example, if the task involves text-based image generation or annotation, this parameter will be used to input the relevant text.

Florence2 Output Parameters:

preview

This output parameter provides the processed image as a result of applying the Florence2 model to the input image. It allows you to visualize the changes and enhancements made by the model.

string

This output parameter returns a string representation of the results, which can include metadata such as detected objects, labels, or other relevant information generated during the processing task.

F_BBOXES

This output parameter provides detailed results in the form of bounding boxes or other relevant data structures, depending on the task performed. It includes information such as coordinates, labels, and other metadata that describe the processed image.

Florence2 Usage Tips:

  • Ensure that the Florence2 model object is correctly loaded and provided as input to the node to avoid any processing errors.
  • Choose the appropriate task for your specific needs to optimize the performance and results of the Florence2 node.
  • Use high-quality images as input to achieve the best possible results from the Florence2 model.

Florence2 Common Errors and Solutions:

Model not loaded

  • Explanation: This error occurs when the Florence2 model object is not correctly loaded or provided as input.
  • Solution: Ensure that the model is properly loaded using the LoadFlorence2Model node and passed as input to the Florence2 node.

Invalid image format

  • Explanation: This error occurs when the input image is not in a compatible format.
  • Solution: Verify that the input image is in a supported format and meets the required specifications for processing.

Unsupported task

  • Explanation: This error occurs when an unsupported task is specified in the task parameter.
  • Solution: Check the available task options and select a valid task that is supported by the Florence2 model.

Missing text input

  • Explanation: This error occurs when the text_input parameter is required for a specific task but is not provided.
  • Solution: Ensure that you provide the necessary text input for tasks that require additional text information.

Florence2 Related Nodes

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