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

  • Log In
  • Sign Up

alibidaran
/
General_image_captioning

Image-to-Text
Transformers
PyTorch
git
image-text-to-text
Model card Files Files and versions
xet
Community
2

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

  • Libraries
  • Transformers

    How to use alibidaran/General_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="alibidaran/General_image_captioning")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("alibidaran/General_image_captioning")
    model = AutoModelForImageTextToText.from_pretrained("alibidaran/General_image_captioning")
  • Notebooks
  • Google Colab
  • Kaggle
General_image_captioning
708 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
alibidaran's picture
alibidaran
Update README.md
e8cb9b2 over 2 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    55 Bytes
    Update README.md over 2 years ago
  • config.json
    2.9 kB
    Upload 8 files almost 3 years ago
  • generation_config.json
    136 Bytes
    Upload 8 files almost 3 years ago
  • preprocessor_config.json
    503 Bytes
    Upload 8 files almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    707 MB
    xet
    Upload 8 files almost 3 years ago
  • special_tokens_map.json
    125 Bytes
    Upload 8 files almost 3 years ago
  • tokenizer.json
    712 kB
    Upload 8 files almost 3 years ago
  • tokenizer_config.json
    414 Bytes
    Upload 8 files almost 3 years ago
  • vocab.txt
    232 kB
    Upload 8 files almost 3 years ago