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

MixTex
/
ZhEn-Latex-OCR

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

Instructions to use MixTex/ZhEn-Latex-OCR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use MixTex/ZhEn-Latex-OCR 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="MixTex/ZhEn-Latex-OCR")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("MixTex/ZhEn-Latex-OCR")
    model = AutoModelForMultimodalLM.from_pretrained("MixTex/ZhEn-Latex-OCR")
  • Notebooks
  • Google Colab
  • Kaggle
ZhEn-Latex-OCR
Ctrl+K
Ctrl+K
  • 2 contributors
History: 34 commits
MixTex's picture
MixTex
Update config.json
37da049 verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • MixTeX.zip

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    249 MB
    xet
    Upload MixTeX.zip almost 2 years ago
  • README.md
    2.13 kB
    Update README.md almost 2 years ago
  • config.json
    4.88 kB
    Update config.json almost 2 years ago
  • generation_config.json
    132 Bytes
    model-v0.1 and tokenizer-v0.1 about 2 years ago
  • merges.txt
    271 kB
    model-v0.1 and tokenizer-v0.1 about 2 years ago
  • model.safetensors
    172 MB
    xet
    fp16 almost 2 years ago
  • preprocessor_config.json
    228 Bytes
    feature_extractor 500*400 about 2 years ago
  • tokenizer_config.json
    1.11 kB
    Update tokenizer_config.json about 2 years ago
  • vocab.json
    441 kB
    model-v0.1 and tokenizer-v0.1 about 2 years ago