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

mathewthe2
/
manga-ocr-base

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

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

  • Libraries
  • Transformers

    How to use mathewthe2/manga-ocr-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="mathewthe2/manga-ocr-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("mathewthe2/manga-ocr-base")
    model = AutoModelForMultimodalLM.from_pretrained("mathewthe2/manga-ocr-base")
  • Notebooks
  • Google Colab
  • Kaggle
manga-ocr-base
891 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 8 commits
mathewthe2's picture
mathewthe2
remove null param
7f20609 about 2 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) about 2 years ago
  • README.md
    705 Bytes
    init about 2 years ago
  • config.json
    77.5 kB
    remove null param about 2 years ago
  • model.safetensors
    444 MB
    xet
    Adding `safetensors` variant of this model (#1) about 2 years ago
  • preprocessor_config.json
    228 Bytes
    init about 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    444 MB
    xet
    init about 2 years ago
  • special_tokens_map.json
    112 Bytes
    init about 2 years ago
  • tokenizer.json
    2.41 MB
    use sentencepiece tokenizer about 2 years ago
  • tokenizer_config.json
    486 Bytes
    init about 2 years ago
  • vocab.txt
    24.1 kB
    init about 2 years ago