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

  • Log In
  • Sign Up

zayed
/
P2

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

Instructions to use zayed/P2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use zayed/P2 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="zayed/P2")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("zayed/P2")
    model = AutoModelForImageTextToText.from_pretrained("zayed/P2")
  • Notebooks
  • Google Colab
  • Kaggle
P2
3.76 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
zayed's picture
zayed
Upload 5 files
755e8ae verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    5.84 kB
    Upload 5 files almost 2 years ago
  • config.json
    4.77 kB
    Upload 2 files almost 2 years ago
  • gitattributes
    1.51 kB
    Upload 2 files almost 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 pytorch_model.bin almost 2 years ago
  • special_tokens_map.json
    132 Bytes
    Upload 5 files almost 2 years ago
  • tf_model.h5
    1.88 GB
    xet
    Upload tf_model.h5 almost 2 years ago
  • tokenizer.json
    742 kB
    Upload 5 files almost 2 years ago
  • tokenizer_config.json
    548 Bytes
    Upload 5 files almost 2 years ago
  • vocab.txt
    262 kB
    Upload 5 files almost 2 years ago