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

  • Log In
  • Sign Up

fxmarty
/
pix2struct-tiny-random

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

Instructions to use fxmarty/pix2struct-tiny-random with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use fxmarty/pix2struct-tiny-random 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="fxmarty/pix2struct-tiny-random")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("fxmarty/pix2struct-tiny-random")
    model = AutoModelForImageTextToText.from_pretrained("fxmarty/pix2struct-tiny-random")
  • Notebooks
  • Google Colab
  • Kaggle
pix2struct-tiny-random
18.2 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
Félix Marty
update pipeline tag
69e8f58 almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    49 Bytes
    update pipeline tag almost 3 years ago
  • config.json
    5.09 kB
    add random model almost 3 years ago
  • generation_config.json
    169 Bytes
    add random model almost 3 years ago
  • preprocessor_config.json
    250 Bytes
    add random 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?

    14.1 MB
    xet
    add random model almost 3 years ago
  • special_tokens_map.json
    2.2 kB
    add random model almost 3 years ago
  • spiece.model
    851 kB
    xet
    add random model almost 3 years ago
  • tokenizer.json
    3.27 MB
    add random model almost 3 years ago
  • tokenizer_config.json
    2.45 kB
    add random model almost 3 years ago