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

adityarajkishan
/
ImageCaptioningTransformers

Image-to-Text
Transformers
PyTorch
vision-encoder-decoder
image-text-to-text
image-captioning
Model card Files Files and versions
xet

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

  • Libraries
  • Transformers

    How to use adityarajkishan/ImageCaptioningTransformers 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="adityarajkishan/ImageCaptioningTransformers")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("adityarajkishan/ImageCaptioningTransformers")
    model = AutoModelForImageTextToText.from_pretrained("adityarajkishan/ImageCaptioningTransformers")
  • Notebooks
  • Google Colab
  • Kaggle
ImageCaptioningTransformers
985 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 19 commits
adityarajkishan's picture
adityarajkishan
Upload pytorch_model.bin
9547703 verified over 2 years ago
  • .gitattributes
    1.18 kB
    Update .gitattributes over 2 years ago
  • README.md
    420 Bytes
    Update README.md over 2 years ago
  • config.json
    4.61 kB
    Update config.json over 2 years ago
  • merges.txt
    456 kB
    initial commit over 2 years ago
  • preprocessor_config.json
    227 Bytes
    Update preprocessor_config.json over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    982 MB
    xet
    Upload pytorch_model.bin over 2 years ago
  • special_tokens_map.json
    121 Bytes
    Update special_tokens_map.json over 2 years ago
  • tokenizer.json
    1.36 MB
    Upload tokenizer.json over 2 years ago
  • tokenizer_config.json
    242 Bytes
    Update tokenizer_config.json over 2 years ago
  • vocab.json
    798 kB
    initial commit over 2 years ago