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

  • Log In
  • Sign Up

SumanthKarnati
/
Image2Ingredients

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

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

  • Libraries
  • Transformers

    How to use SumanthKarnati/Image2Ingredients 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="SumanthKarnati/Image2Ingredients")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("SumanthKarnati/Image2Ingredients")
    model = AutoModelForImageTextToText.from_pretrained("SumanthKarnati/Image2Ingredients")
  • Notebooks
  • Google Colab
  • Kaggle
Image2Ingredients
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
SumanthKarnati's picture
SumanthKarnati
"Adding the model"
3eb7008 almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    53 Bytes
    Update README.md almost 3 years ago
  • config.json
    5.05 kB
    "Adding the model" almost 3 years ago
  • generation_config.json
    179 Bytes
    "Adding the model" almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    957 MB
    xet
    "Adding the model" almost 3 years ago