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

qantev
/
trocr-base-spanish

Image-to-Text
Transformers
PyTorch
Spanish
English
vision-encoder-decoder
image-text-to-text
trocr
Model card Files Files and versions
xet
Community
2

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

  • Libraries
  • Transformers

    How to use qantev/trocr-base-spanish 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="qantev/trocr-base-spanish")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("qantev/trocr-base-spanish")
    model = AutoModelForImageTextToText.from_pretrained("qantev/trocr-base-spanish")
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Adding `safetensors` variant of this model

#2 opened over 1 year ago by
SFconvertbot

Missing Information on speed per image on CPU and GPU

1
#1 opened almost 2 years ago by
macimovic95
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs