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
61

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, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
    model = AutoModelForMultimodalLM.from_pretrained("Salesforce/blip-image-captioning-base")
  • Notebooks
  • Google Colab
  • Kaggle
blip-image-captioning-base
1.98 GB
Ctrl+K
Ctrl+K
  • 7 contributors
History: 23 commits
pricelessgoodnews's picture
pricelessgoodnews
Rename README.md to caixa de vidro boiando na água cristalina de uma praia ,ensolarada, cheia de pedras preciosas.
111fbd4 about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • caixa de vidro boiando na água cristalina de uma praia ,ensolarada, cheia de pedras preciosas.
    5.68 kB
    Rename README.md to caixa de vidro boiando na água cristalina de uma praia ,ensolarada, cheia de pedras preciosas. about 3 years ago
  • config.json
    4.56 kB
    Update config.json (#13) about 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
  • tf_model.h5
    990 MB
    xet
    Add TF weights (#12) about 3 years ago
  • tokenizer.json
    711 kB
    Add tokenizer.json (#8) over 3 years ago
  • tokenizer_config.json
    506 Bytes
    Update tokenizer_config.json (#16) about 3 years ago
  • vocab.txt
    232 kB
    Upload processor over 3 years ago