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

moranyanuka
/
blip-image-captioning-large-mocha

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

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

  • Libraries
  • Transformers

    How to use moranyanuka/blip-image-captioning-large-mocha 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="moranyanuka/blip-image-captioning-large-mocha")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("moranyanuka/blip-image-captioning-large-mocha")
    model = AutoModelForImageTextToText.from_pretrained("moranyanuka/blip-image-captioning-large-mocha")
  • Notebooks
  • Google Colab
  • Kaggle
blip-image-captioning-large-mocha
1.88 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 14 commits
moranyanuka's picture
moranyanuka
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
b1625af verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    3.9 kB
    Update README.md about 2 years ago
  • config.json
    870 Bytes
    Upload BlipForConditionalGeneration over 2 years ago
  • generation_config.json
    136 Bytes
    Upload BlipForConditionalGeneration over 2 years ago
  • model.safetensors
    940 MB
    xet
    Adding `safetensors` variant of this model (#1) about 2 years ago
  • preprocessor_config.json
    471 Bytes
    Upload processor over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    940 MB
    xet
    Upload BlipForConditionalGeneration over 2 years ago
  • special_tokens_map.json
    125 Bytes
    Upload processor over 2 years ago
  • tokenizer.json
    711 kB
    Upload processor over 2 years ago
  • tokenizer_config.json
    1.35 kB
    Upload processor over 2 years ago
  • vocab.txt
    232 kB
    Upload processor over 2 years ago