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

Salesforce
/
blip-image-captioning-base

Image-to-Text
Transformers
PyTorch
google-tensorflow TensorFlow
blip
image-text-to-text
image-captioning
Model card Files Files and versions
xet
Community
60

Instructions to use Salesforce/blip-image-captioning-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Salesforce/blip-image-captioning-base 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="Salesforce/blip-image-captioning-base")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
    model = AutoModelForImageTextToText.from_pretrained("Salesforce/blip-image-captioning-base")
  • Notebooks
  • Google Colab
  • Kaggle
blip-image-captioning-base
990 MB
Ctrl+K
Ctrl+K
  • 7 contributors
History: 17 commits
patrickvonplaten's picture
patrickvonplaten
Update README.md
d1b6429 about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    5.68 kB
    Update README.md about 3 years ago
  • config.json
    4.56 kB
    Upload BlipForConditionalGeneration over 3 years ago
  • preprocessor_config.json
    287 Bytes
    Update preprocessor_config.json over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch.FloatStorage",
    • "collections.OrderedDict",
    • "torch.LongStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    990 MB
    xet
    Upload BlipForConditionalGeneration over 3 years ago
  • special_tokens_map.json
    125 Bytes
    Upload processor over 3 years ago
  • tokenizer_config.json
    438 Bytes
    Upload processor over 3 years ago
  • vocab.txt
    232 kB
    Upload processor over 3 years ago