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

Duplicated from  kha-white/manga-ocr-base

TareHimself
/
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
2

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

  • Libraries
  • Transformers

    How to use TareHimself/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="TareHimself/manga-ocr-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("TareHimself/manga-ocr-base")
    model = AutoModelForImageTextToText.from_pretrained("TareHimself/manga-ocr-base")
  • Notebooks
  • Google Colab
  • Kaggle
manga-ocr-base
888 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 5 commits
TareHimself's picture
TareHimself
Update preprocessor_config.json
16f7d8f verified almost 2 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • README.md
    286 Bytes
    Update README.md over 2 years ago
  • config.json
    77.5 kB
    Duplicate from kha-white/manga-ocr-base over 2 years ago
  • model.safetensors
    444 MB
    xet
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • preprocessor_config.json
    224 Bytes
    Update preprocessor_config.json almost 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
    Duplicate from kha-white/manga-ocr-base over 2 years ago
  • special_tokens_map.json
    112 Bytes
    Duplicate from kha-white/manga-ocr-base over 2 years ago
  • tokenizer_config.json
    486 Bytes
    Duplicate from kha-white/manga-ocr-base over 2 years ago
  • vocab.txt
    24.1 kB
    Duplicate from kha-white/manga-ocr-base over 2 years ago