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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

PiotrSty
/
trocr-pl-base

Image-to-Text
Transformers
Safetensors
Polish
English
vision-encoder-decoder
image-text-to-text
trocr
ocr
polish
historical-print
experimental
Eval Results (legacy)
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use PiotrSty/trocr-pl-base 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="PiotrSty/trocr-pl-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("PiotrSty/trocr-pl-base")
    model = AutoModelForMultimodalLM.from_pretrained("PiotrSty/trocr-pl-base", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
trocr-pl-base
1.35 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
PiotrSty's picture
PiotrSty
Remove stale checkpoints from earlier training run
fff0416 verified 5 days ago
  • adapter
    Publish experimental TrOCR PL run 2 with real-scan metrics 5 days ago
  • .gitattributes
    1.52 kB
    initial commit 6 days ago
  • README.md
    3.84 kB
    Publish experimental TrOCR PL run 2 with real-scan metrics 5 days ago
  • best_metrics.json
    220 Bytes
    Publish experimental TrOCR PL run 2 with real-scan metrics 5 days ago
  • config.json
    1.48 kB
    Publish experimental TrOCR PL run 2 with real-scan metrics 5 days ago
  • generation_config.json
    198 Bytes
    Publish experimental TrOCR PL run 2 with real-scan metrics 5 days ago
  • merges.txt
    456 kB
    Upload folder using huggingface_hub 6 days ago
  • model.safetensors
    1.34 GB
    xet
    Publish experimental TrOCR PL run 2 with real-scan metrics 5 days ago
  • preprocessor_config.json
    390 Bytes
    Upload folder using huggingface_hub 6 days ago
  • run.json
    474 kB
    Publish experimental TrOCR PL run 2 with real-scan metrics 5 days ago
  • selection.json
    106 Bytes
    Publish experimental TrOCR PL run 2 with real-scan metrics 5 days ago
  • special_tokens_map.json
    957 Bytes
    Upload folder using huggingface_hub 6 days ago
  • tokenizer.json
    3.56 MB
    Upload folder using huggingface_hub 6 days ago
  • tokenizer_config.json
    1.28 kB
    Upload folder using huggingface_hub 6 days ago
  • vocab.json
    798 kB
    Upload folder using huggingface_hub 6 days ago