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

  • Log In
  • Sign Up

cnmoro
/
tiny-image-captioning

Image-to-Text
Transformers
Safetensors
English
vision-encoder-decoder
image-text-to-text
vit
bert
vision
caption
captioning
image
Model card Files Files and versions
xet
Community

Instructions to use cnmoro/tiny-image-captioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use cnmoro/tiny-image-captioning 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="cnmoro/tiny-image-captioning")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("cnmoro/tiny-image-captioning")
    model = AutoModelForImageTextToText.from_pretrained("cnmoro/tiny-image-captioning")
  • Notebooks
  • Google Colab
  • Kaggle
tiny-image-captioning
107 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
cnmoro's picture
cnmoro
Update README.md
acbc2ca verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    1.63 kB
    Update README.md over 1 year ago
  • config.json
    4.4 kB
    Upload 8 files over 1 year ago
  • generation_config.json
    117 Bytes
    Upload 8 files over 1 year ago
  • model.safetensors
    106 MB
    xet
    Upload 8 files over 1 year ago
  • preprocessor_config.json
    325 Bytes
    Upload 8 files over 1 year ago
  • special_tokens_map.json
    125 Bytes
    Upload 8 files over 1 year ago
  • tokenizer.json
    712 kB
    Upload 8 files over 1 year ago
  • tokenizer_config.json
    1.27 kB
    Upload 8 files over 1 year ago
  • vocab.txt
    232 kB
    Upload 8 files over 1 year ago