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

  • Log In
  • Sign Up

aayushgs
/
Salesforce-blip-image-captioning-large-custom-handler

Image-to-Text
Transformers
PyTorch
blip
image-text-to-text
image-captioning
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use aayushgs/Salesforce-blip-image-captioning-large-custom-handler 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="aayushgs/Salesforce-blip-image-captioning-large-custom-handler")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("aayushgs/Salesforce-blip-image-captioning-large-custom-handler")
    model = AutoModelForImageTextToText.from_pretrained("aayushgs/Salesforce-blip-image-captioning-large-custom-handler")
  • Notebooks
  • Google Colab
  • Kaggle
Salesforce-blip-image-captioning-large-custom-handler
1.88 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
aayushgs's picture
aayushgs
slight changes
f322bda verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    5.51 kB
    upload initial about 2 years ago
  • config.json
    4.6 kB
    upload initial about 2 years ago
  • handler.py
    2.13 kB
    slight changes about 2 years ago
  • preprocessor_config.json
    445 Bytes
    upload initial about 2 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?

    1.88 GB
    xet
    upload initial about 2 years ago
  • special_tokens_map.json
    125 Bytes
    upload initial about 2 years ago
  • tokenizer.json
    711 kB
    upload initial about 2 years ago
  • tokenizer_config.json
    527 Bytes
    upload initial about 2 years ago
  • vocab.txt
    232 kB
    upload initial about 2 years ago