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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ayushrupapara
/
vit-gpt2-flickr8k-image-captioner

Image-to-Text
Transformers
Model card Files Files and versions
xet
Community
1

Instructions to use ayushrupapara/vit-gpt2-flickr8k-image-captioner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ayushrupapara/vit-gpt2-flickr8k-image-captioner 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="ayushrupapara/vit-gpt2-flickr8k-image-captioner")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("ayushrupapara/vit-gpt2-flickr8k-image-captioner", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
vit-gpt2-flickr8k-image-captioner
964 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 17 commits
ayushrupapara's picture
ayushrupapara
Update README.md
782401d verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    78 Bytes
    Update README.md over 1 year ago
  • merges.txt
    456 kB
    Rename tokenizer/merges.txt to merges.txt over 1 year ago
  • model.pth

    Detected Pickle imports (3)

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

    What is a pickle import?

    959 MB
    xet
    Rename model/model.pth to model.pth over 1 year ago
  • preprocessor_config.json
    353 Bytes
    Rename feature_extractor/preprocessor_config.json to preprocessor_config.json over 1 year ago
  • special_tokens_map.json
    131 Bytes
    Rename tokenizer/special_tokens_map.json to special_tokens_map.json over 1 year ago
  • tokenizer.json
    3.56 MB
    Rename tokenizer/tokenizer.json to tokenizer.json over 1 year ago
  • tokenizer_config.json
    507 Bytes
    Rename tokenizer/tokenizer_config.json to tokenizer_config.json over 1 year ago
  • vocab.json
    798 kB
    Rename tokenizer/vocab.json to vocab.json over 1 year ago