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
trocr-base-spanish
1.54 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 10 commits
filipelauar's picture
filipelauar
Update README.md
a17231b verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • LICENSE
    1.08 kB
    Create LICENSE over 2 years ago
  • README.md
    4.79 kB
    Update README.md almost 2 years ago
  • background_encoder_decoder.png
    74 kB
    Upload 5 files over 2 years ago
  • config.json
    4.93 kB
    Upload model over 2 years ago
  • example_1.png
    24.8 kB
    Rename image (2).png to example_1.png over 2 years ago
  • example_2.jpg
    17.2 kB
    Rename 42_es_val_45.jpg to example_2.jpg over 2 years ago
  • example_3.jpeg
    36.2 kB
    Rename Image 07-02-2024 à 14.27.jpeg to example_3.jpeg over 2 years ago
  • generated_dataset.jpeg
    403 kB
    Upload 5 files over 2 years ago
  • generation_config.json
    384 Bytes
    Upload model over 2 years ago
  • merges.txt
    456 kB
    Upload processor over 2 years ago
  • preprocessor_config.json
    364 Bytes
    Upload processor over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    1.54 GB
    xet
    Upload model over 2 years ago
  • special_tokens_map.json
    957 Bytes
    Upload processor over 2 years ago
  • tokenizer.json
    2.11 MB
    Upload processor over 2 years ago
  • tokenizer_config.json
    1.38 kB
    Upload processor over 2 years ago
  • vocab.json
    798 kB
    Upload processor over 2 years ago