Image-to-Text
Transformers
Safetensors
English
florence2
image-text-to-text
image-captioning
custom_code
Instructions to use congruency/florence-2-large-ft-moredetailed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use congruency/florence-2-large-ft-moredetailed with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="congruency/florence-2-large-ft-moredetailed", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("congruency/florence-2-large-ft-moredetailed", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("congruency/florence-2-large-ft-moredetailed", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download __init__.py from congruency/florence-2-large-ft-moredetailed: direct link, hf CLI and curl.
- Browser
- Download file 0 Bytes
-
https://huggingface.co/congruency/florence-2-large-ft-moredetailed/resolve/main/__init__.py
- Command line
-
hf download hf://congruency/florence-2-large-ft-moredetailed/__init__.py
-
curl -L -o __init__.py https://huggingface.co/congruency/florence-2-large-ft-moredetailed/resolve/main/__init__.py
0 Bytes