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

stevenlearns
/
caption-tool

Image-to-Text
Transformers
PyTorch
image-captioning
dataset-tools
lora
Model card Files Files and versions
xet
Community

Instructions to use stevenlearns/caption-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use stevenlearns/caption-tool 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="stevenlearns/caption-tool")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("stevenlearns/caption-tool", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
caption-tool
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
stevenlearns's picture
stevenlearns
Update README.md
458c525 verified 3 days ago
  • .gitattributes
    1.52 kB
    initial commit 9 days ago
  • .gitignore
    125 Bytes
    Upload folder using huggingface_hub 9 days ago
  • LICENSE
    1.07 kB
    Upload folder using huggingface_hub 9 days ago
  • README.md
    3.73 kB
    Update README.md 3 days ago
  • caption.py
    12.5 kB
    Upload folder using huggingface_hub 9 days ago
  • caption_config.json
    145 Bytes
    Upload folder using huggingface_hub 9 days ago
  • install.sh
    6.07 kB
    Upload folder using huggingface_hub 9 days ago
  • requirements.txt
    194 Bytes
    Upload folder using huggingface_hub 9 days ago