Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

theIndividual
/
Florence-2-large

Image-to-Text
Transformers
PyTorch
florence2
image-text-to-text
vision
custom_code
Model card Files Files and versions
xet
Community

Instructions to use theIndividual/Florence-2-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use theIndividual/Florence-2-large 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="theIndividual/Florence-2-large", trust_remote_code=True)
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("theIndividual/Florence-2-large", trust_remote_code=True)
    model = AutoModelForImageTextToText.from_pretrained("theIndividual/Florence-2-large", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
Florence-2-large
1.55 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Pedro Cavalcanti
changing modeling file
f52cc27 almost 2 years ago
  • .gitattributes
    1.61 kB
    duplication almost 2 years ago
  • CODE_OF_CONDUCT.md
    444 Bytes
    duplication almost 2 years ago
  • LICENSE
    1.14 kB
    duplication almost 2 years ago
  • README.md
    14.4 kB
    duplication almost 2 years ago
  • SECURITY.md
    2.66 kB
    duplication almost 2 years ago
  • SUPPORT.md
    1.24 kB
    duplication almost 2 years ago
  • config.json
    2.45 kB
    duplication almost 2 years ago
  • configuration_florence2.py
    15.1 kB
    duplication almost 2 years ago
  • generation_config.json
    51 Bytes
    duplication almost 2 years ago
  • modeling_florence2.py
    127 kB
    changing modeling file almost 2 years ago
  • preprocessor_config.json
    806 Bytes
    duplication almost 2 years ago
  • processing_florence2.py
    46.4 kB
    duplication almost 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch.HalfStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    1.54 GB
    xet
    duplication almost 2 years ago
  • sample_inference.ipynb
    4.17 MB
    duplication almost 2 years ago
  • tokenizer.json
    1.36 MB
    duplication almost 2 years ago
  • tokenizer_config.json
    34 Bytes
    duplication almost 2 years ago
  • vocab.json
    1.1 MB
    duplication almost 2 years ago