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

  • Log In
  • Sign Up

anaghasavit
/
trocr-processor

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

Instructions to use anaghasavit/trocr-processor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use anaghasavit/trocr-processor 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="anaghasavit/trocr-processor")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("anaghasavit/trocr-processor")
    model = AutoModelForImageTextToText.from_pretrained("anaghasavit/trocr-processor")
  • Notebooks
  • Google Colab
  • Kaggle
trocr-processor
1.37 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
anaghasavit's picture
anaghasavit
Update preprocessor_config.json
26a0845 about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    2.97 kB
    Upload 9 files about 3 years ago
  • config.json
    4.17 kB
    Upload 9 files about 3 years ago
  • generation_config.json
    190 Bytes
    Upload 9 files about 3 years ago
  • merges.txt
    456 kB
    Upload 9 files about 3 years ago
  • preprocessor_config.json
    278 Bytes
    Update preprocessor_config.json about 3 years ago
  • pytorch_model.bin
    135 Bytes
    xet
    Upload 9 files about 3 years ago
  • special_tokens_map.json
    772 Bytes
    Upload 9 files about 3 years ago
  • tokenizer_config.json
    1.12 kB
    Upload 9 files about 3 years ago
  • vocab.json
    899 kB
    Upload 9 files about 3 years ago