Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

welabbar
/
florence2_bj_cc

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

Instructions to use welabbar/florence2_bj_cc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use welabbar/florence2_bj_cc 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="welabbar/florence2_bj_cc", trust_remote_code=True)
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("welabbar/florence2_bj_cc", trust_remote_code=True)
    model = AutoModelForImageTextToText.from_pretrained("welabbar/florence2_bj_cc", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
florence2_bj_cc
1.09 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 12 commits
welabbar's picture
welabbar
Update preprocessor_config.json
68656d7 verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    63 Bytes
    Update README.md almost 2 years ago
  • added_tokens.json
    22.4 kB
    Upload folder using huggingface_hub almost 2 years ago
  • config.json
    2.5 kB
    Update config.json almost 2 years ago
  • generation_config.json
    292 Bytes
    Upload folder using huggingface_hub almost 2 years ago
  • merges.txt
    456 kB
    Upload folder using huggingface_hub almost 2 years ago
  • model.safetensors
    1.08 GB
    xet
    Upload folder using huggingface_hub almost 2 years ago
  • preprocessor_config.json
    806 Bytes
    Update preprocessor_config.json almost 2 years ago
  • processing_florence2.py
    46.4 kB
    Create processing_florence2.py almost 2 years ago
  • special_tokens_map.json
    147 kB
    Upload folder using huggingface_hub almost 2 years ago
  • tokenizer.json
    2.3 MB
    Upload folder using huggingface_hub almost 2 years ago
  • tokenizer_config.json
    198 kB
    Upload folder using huggingface_hub almost 2 years ago
  • vocab.json
    798 kB
    Upload folder using huggingface_hub almost 2 years ago