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

kazars24
/
trocr-base-handwritten-ru

Image-to-Text
Transformers
Safetensors
Russian
vision-encoder-decoder
image-text-to-text
trocr
ocr
handwritten
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use kazars24/trocr-base-handwritten-ru 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="kazars24/trocr-base-handwritten-ru")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("kazars24/trocr-base-handwritten-ru")
    model = AutoModelForImageTextToText.from_pretrained("kazars24/trocr-base-handwritten-ru")
  • Notebooks
  • Google Colab
  • Kaggle
trocr-base-handwritten-ru
1.34 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
kazars24's picture
kazars24
Update README.md
5342fbb verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    2.6 kB
    Update README.md over 1 year ago
  • config.json
    4.9 kB
    Upload model over 1 year ago
  • generation_config.json
    273 Bytes
    Upload model over 1 year ago
  • merges.txt
    456 kB
    Upload processor over 1 year ago
  • model.safetensors
    1.34 GB
    xet
    Upload model over 1 year ago
  • preprocessor_config.json
    364 Bytes
    Upload processor over 1 year ago
  • special_tokens_map.json
    957 Bytes
    Upload processor over 1 year ago
  • tokenizer.json
    3.56 MB
    Upload processor over 1 year ago
  • tokenizer_config.json
    1.36 kB
    Upload processor over 1 year ago
  • vocab.json
    798 kB
    Upload processor over 1 year ago