Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

yuta1984
/
honkoku-ocr

Image-to-Text
Transformers
ONNX
Safetensors
Japanese
English
vision-encoder-decoder
feature-extraction
ocr
kuzushiji
japanese
historical-documents
custom_code
Model card Files Files and versions
xet
Community

Instructions to use yuta1984/honkoku-ocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use yuta1984/honkoku-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="yuta1984/honkoku-ocr", trust_remote_code=True)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("yuta1984/honkoku-ocr", trust_remote_code=True)
    model = AutoModel.from_pretrained("yuta1984/honkoku-ocr", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
honkoku-ocr / __pycache__
9.67 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
yuta1984's picture
yuta1984
v19: PyTorch + ONNX ヒデルとヒデルカードを公開
0ebfaa1 verified 3 months ago
  • image_processing_kuzushiji.cpython-312.pyc
    4.3 kB
    v19: PyTorch + ONNX ヒデルとヒデルカードを公開 3 months ago
  • modeling_kuzushiji.cpython-312.pyc
    5.38 kB
    v19: PyTorch + ONNX ヒデルとヒデルカードを公開 3 months ago