ManAI-Reader/manga-ai-models

0

stars

4

commits

Python

primary language

Feb 9, 2026

updated

README

Manga AI Models

Python script to export ONNX INT8 inference models for manga OCR and text bubble detection, based on HuggingFace models.

Models

ModelSizeInputOutputSource
encoder.onnx~85 MBpixel_values [1,3,224,224]last_hidden_state [1,197,768]manga-ocr-base
decoder_first.onnx~28 MBinput_ids, encoder_hidden_stateslogits + 8 KV-cache tensors"
decoder_with_past.onnx~26 MBinput_ids, encoder_hidden_states, past_0..7logits + 8 KV-cache tensors"
textdetector.onnx~3.2 MBimages [1,3,640,640][1,5,8400] (xc,yc,w,h,conf)manga109-segmentation-bubble (YOLOv11)
vocab.txt~24 KBmanga-ocr-base tokenizer

Setup

uv venv .venv --python 3.11.3 && source .venv/bin/activate
uv sync

Usage

python export.py

Downloads all source models from HuggingFace automatically, exports 4 ONNX models (FP32), quantizes them to INT8, and saves everything to output/.

Pipeline

HuggingFace models (manga-ocr-base + manga109-segmentation-bubble)
  -> ONNX export (FP32, opset 14/17)
  -> Dynamic quantization INT8
  -> output/*.onnx

Credits

Contributors

HighLiuk

4 commits

ManAI-Reader/manga-ai-models

0

stars

4

commits

Python

primary language

Feb 9, 2026

updated

README

Manga AI Models

Python script to export ONNX INT8 inference models for manga OCR and text bubble detection, based on HuggingFace models.

Models

ModelSizeInputOutputSource
encoder.onnx~85 MBpixel_values [1,3,224,224]last_hidden_state [1,197,768]manga-ocr-base
decoder_first.onnx~28 MBinput_ids, encoder_hidden_stateslogits + 8 KV-cache tensors"
decoder_with_past.onnx~26 MBinput_ids, encoder_hidden_states, past_0..7logits + 8 KV-cache tensors"
textdetector.onnx~3.2 MBimages [1,3,640,640][1,5,8400] (xc,yc,w,h,conf)manga109-segmentation-bubble (YOLOv11)
vocab.txt~24 KBmanga-ocr-base tokenizer

Setup

uv venv .venv --python 3.11.3 && source .venv/bin/activate
uv sync

Usage

python export.py

Downloads all source models from HuggingFace automatically, exports 4 ONNX models (FP32), quantizes them to INT8, and saves everything to output/.

Pipeline

HuggingFace models (manga-ocr-base + manga109-segmentation-bubble)
  -> ONNX export (FP32, opset 14/17)
  -> Dynamic quantization INT8
  -> output/*.onnx

Credits

Contributors

HighLiuk

4 commits

Languages

Python

100.0%