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

  • Log In
  • Sign Up

Ransaka
/
trocr-IAM

Image-to-Text
Transformers
TensorBoard
Safetensors
vision-encoder-decoder
image-text-to-text
trocr
Model card Files Files and versions
xet
Metrics Training metrics Community

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

  • Libraries
  • Transformers

    How to use Ransaka/trocr-IAM 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="Ransaka/trocr-IAM")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("Ransaka/trocr-IAM")
    model = AutoModelForImageTextToText.from_pretrained("Ransaka/trocr-IAM")
  • Notebooks
  • Google Colab
  • Kaggle
trocr-IAM
1.54 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
Ransaka's picture
Ransaka
Update README.md
f046c65 over 2 years ago
  • runs
    End of training over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    1.38 kB
    Update README.md over 2 years ago
  • config.json
    4.74 kB
    End of training over 2 years ago
  • generation_config.json
    273 Bytes
    End of training over 2 years ago
  • model.safetensors
    1.54 GB
    xet
    End of training over 2 years ago
  • preprocessor_config.json
    325 Bytes
    End of training over 2 years ago
  • training_args.bin
    4.73 kB
    xet
    End of training over 2 years ago