OzzyGT / florence-2-block

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: October 01 2025

Introduction of florence-2-block

Model Details of florence-2-block

a modular custom block that can be dynamically load in mellon!

mellon param map is saved like this, for now ... we will make it really easy soon!

from diffusers.modular_pipelines.mellon_node_utils import MellonNodeConfig, MellonParam

SUPPORTED_ANNOTATION_TASKS = [
    "<OD>",
    "<REFERRING_EXPRESSION_SEGMENTATION>",
    "<CAPTION>",
    "<DETAILED_CAPTION>",
    "<MORE_DETAILED_CAPTION>",
    "<DENSE_REGION_CAPTION>",
    "<CAPTION_TO_PHRASE_GROUNDING>",
    "<OPEN_VOCABULARY_DETECTION>",
]

SUPPORTED_ANNOTATION_OUTPUT_TYPES = [
    "mask_image",
    "bounding_box",
    "mask_overlay",
]

node_config = MellonNodeConfig(
    inputs= [
        "image",
         MellonParam(name="annotation_task", label="Annotation Task", type="string", options=SUPPORTED_ANNOTATION_TASKS, value="<CAPTION_TO_PHRASE_GROUNDING>"),
         MellonParam(name="annotation_prompt", label="Annotation Prompt", type="string", default="", display="textarea"),
         MellonParam(
            name="annotation_output_type",
            label="Annotation Output Type",
            type="string",
            options=SUPPORTED_ANNOTATION_OUTPUT_TYPES,
            value="bounding_box",
            onChange={
                "mask_image": ["mask_image"],
                "bounding_box": [],
                "mask_overlay": [],
            }),
    ],
    model_inputs= [],
    outputs= [
        MellonParam(name="images", label="Images", type="image", display="output"),
        MellonParam(name="annotations", label="Annotations", type="string", display="output"),
        MellonParam(name="mask_image", label="Mask Image", type="image", display="output"),
    ],
    blocks_names= ["Florence2ImageAnnotatorBlock"],
    node_type="custom",
)

node_config.save_mellon_config("YiYiXu/florence-2-block", push_to_hub=True)

to run the block for bbox

import torch
from diffusers.modular_pipelines import ModularPipeline
from diffusers.utils import load_image

repo_id = "YiYiXu/florence-2-block"
# fetch the Florence2 image annotator block that will create our mask
pipe = ModularPipeline.from_pretrained("./florence-2-custom-block", trust_remote_code=True)
pipe.load_components(torch_dtype=torch.float16)
pipe.to("cuda")



image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg?download=true")
image = image.resize((1024, 1024))

annotation_task = '<CAPTION_TO_PHRASE_GROUNDING>'
annotation_prompt = "car"

output = pipe(
    image=image,
    annotation_task=annotation_task,
    annotation_prompt=annotation_prompt,
    annotation_output_type="bounding_box",
).image[0].save("output.png")

Runs of OzzyGT florence-2-block on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About florence-2-block huggingface.co Model

More florence-2-block license Visit here:

https://choosealicense.com/licenses/apache-2.0

florence-2-block huggingface.co

florence-2-block huggingface.co is an AI model on huggingface.co that provides florence-2-block's model effect (), which can be used instantly with this OzzyGT florence-2-block model. huggingface.co supports a free trial of the florence-2-block model, and also provides paid use of the florence-2-block. Support call florence-2-block model through api, including Node.js, Python, http.

florence-2-block huggingface.co Url

https://huggingface.co/OzzyGT/florence-2-block

OzzyGT florence-2-block online free

florence-2-block huggingface.co is an online trial and call api platform, which integrates florence-2-block's modeling effects, including api services, and provides a free online trial of florence-2-block, you can try florence-2-block online for free by clicking the link below.

OzzyGT florence-2-block online free url in huggingface.co:

https://huggingface.co/OzzyGT/florence-2-block

florence-2-block install

florence-2-block is an open source model from GitHub that offers a free installation service, and any user can find florence-2-block on GitHub to install. At the same time, huggingface.co provides the effect of florence-2-block install, users can directly use florence-2-block installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

florence-2-block install url in huggingface.co:

https://huggingface.co/OzzyGT/florence-2-block

Url of florence-2-block

florence-2-block huggingface.co Url

Provider of florence-2-block huggingface.co

OzzyGT
ORGANIZATIONS

Other API from OzzyGT

huggingface.co

Total runs: 112
Run Growth: -12
Growth Rate: -10.71%
Updated:March 25 2026
huggingface.co

Total runs: 8
Run Growth: -21
Growth Rate: -262.50%
Updated:March 28 2026
huggingface.co

Total runs: 3
Run Growth: -2
Growth Rate: -66.67%
Updated:February 21 2026
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:November 11 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 12 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 22 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 19 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 18 2024