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

  • Log In
  • Sign Up

atasoglu
/
vit-bert-flickr8k

Image-to-Text
Transformers
PyTorch
Safetensors
English
vision-encoder-decoder
image-text-to-text
image
vision
Model card Files Files and versions
xet
Community
1

Instructions to use atasoglu/vit-bert-flickr8k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use atasoglu/vit-bert-flickr8k 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="atasoglu/vit-bert-flickr8k")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("atasoglu/vit-bert-flickr8k")
    model = AutoModelForImageTextToText.from_pretrained("atasoglu/vit-bert-flickr8k")
  • Notebooks
  • Google Colab
  • Kaggle
vit-bert-flickr8k
1.79 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
atasoglu's picture
atasoglu
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
b2d6506 almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    1.14 kB
    Update README.md almost 3 years ago
  • config.json
    4.72 kB
    upload files almost 3 years ago
  • generation_config.json
    93 Bytes
    upload files almost 3 years ago
  • model.safetensors
    897 MB
    xet
    Adding `safetensors` variant of this model (#1) almost 3 years ago
  • preprocessor_config.json
    325 Bytes
    upload files almost 3 years ago
  • pytorch_model.bin
    897 MB
    xet
    upload files almost 3 years ago
  • special_tokens_map.json
    125 Bytes
    upload files almost 3 years ago
  • tokenizer_config.json
    366 Bytes
    upload files almost 3 years ago
  • training_args.bin
    4.03 kB
    xet
    upload files almost 3 years ago
  • vocab.txt
    232 kB
    upload files almost 3 years ago