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

suchut
/
thaitrocr-base-handwritten-beta2

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

Instructions to use suchut/thaitrocr-base-handwritten-beta2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use suchut/thaitrocr-base-handwritten-beta2 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="suchut/thaitrocr-base-handwritten-beta2")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("suchut/thaitrocr-base-handwritten-beta2")
    model = AutoModelForImageTextToText.from_pretrained("suchut/thaitrocr-base-handwritten-beta2")
  • Notebooks
  • Google Colab
  • Kaggle
thaitrocr-base-handwritten-beta2
415 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
suchut's picture
suchut
Create README.md
9bc78f2 verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    2 kB
    Create README.md over 1 year ago
  • config.json
    4.92 kB
    Upload model over 1 year ago
  • generation_config.json
    260 Bytes
    Upload model over 1 year ago
  • model.safetensors
    411 MB
    xet
    Upload model over 1 year ago
  • preprocessor_config.json
    364 Bytes
    Upload model over 1 year ago
  • sentencepiece.bpe.model
    906 kB
    xet
    Upload model over 1 year ago
  • special_tokens_map.json
    1.06 kB
    Upload model over 1 year ago
  • tokenizer.json
    2.18 MB
    Upload model over 1 year ago
  • tokenizer_config.json
    1.85 kB
    Upload model over 1 year ago