Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

mdevst
/
trocr-large-handwritten

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

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

  • Libraries
  • Transformers

    How to use mdevst/trocr-large-handwritten 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="mdevst/trocr-large-handwritten")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("mdevst/trocr-large-handwritten")
    model = AutoModelForMultimodalLM.from_pretrained("mdevst/trocr-large-handwritten", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
trocr-large-handwritten / onnx
4.78 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
themethdev's picture
themethdev
Rename onnx/encoder_model_fp16.onnx to onnx/encoder_model.onnx
47eee9d verified about 1 year ago
  • decoder_model.onnx
    1.22 GB
    xet
    Rename onnx/decoder_model_fp16.onnx to onnx/decoder_model.onnx about 1 year ago
  • decoder_model_merged.onnx
    1.22 GB
    xet
    Rename onnx/decoder_model_merged_fp16.onnx to onnx/decoder_model_merged.onnx about 1 year ago
  • decoder_with_past_model.onnx
    1.12 GB
    xet
    Rename onnx/decoder_with_past_model_fp16.onnx to onnx/decoder_with_past_model.onnx about 1 year ago
  • encoder_model.onnx
    1.21 GB
    xet
    Rename onnx/encoder_model_fp16.onnx to onnx/encoder_model.onnx about 1 year ago