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

  • Log In
  • Sign Up

nnpy
/
Instruct-blip-v2

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

Instructions to use nnpy/Instruct-blip-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use nnpy/Instruct-blip-v2 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="nnpy/Instruct-blip-v2")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("nnpy/Instruct-blip-v2")
    model = AutoModelForImageTextToText.from_pretrained("nnpy/Instruct-blip-v2")
  • Notebooks
  • Google Colab
  • Kaggle
Instruct-blip-v2
990 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
prasanna2003's picture
prasanna2003
Create README.md
61d9a5b almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    856 Bytes
    Create README.md almost 3 years ago
  • config.json
    4.71 kB
    Upload BlipForConditionalGeneration (#1) almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    990 MB
    xet
    Upload BlipForConditionalGeneration (#1) almost 3 years ago