manga ocr browser

i prepared smaller downloads of mangaocr for japanese text recognition in the browser. these are the existing q8 exports from onnx community, compressed with gzip. the weights are unchanged.

the encoder and decoder download in about 95.5 mb combined, down from 116.6 mb. decompress them before loading them into ONNX Runtime Web. compression reduces the download size. inference time and memory use stay the same.

in my manga samples, the model corrected several weak paddle predictions but introduced errors elsewhere. readest therefore uses it to retry uncertain lines. small reading guides beside kanji can still cause errors.

scripts and test results

one character at a time

encoder.onnx, decoder.onnx and their .data.gz weights are the same q8 weights in rebuilt graphs (build.py). the encoder also returns the decoder's cross attention keys and values. the decoder takes one token per beam with the keys and values of the tokens before it, reorders them by beam, and returns its 64 likeliest tokens. reading 15 characters after the encoder takes about 148 ms on one WebAssembly thread, down from 1450 ms. decompress the .data.gz files and pass them to ONNX Runtime Web as external data.

use

download both .onnx.gz files and vocab.txt. decompress the model files with gzip. the source model documents the preprocessing and decoder settings. this repository includes file sizes and checksums in models.json and packed.json.

the model and vocabulary retain the apache license, version 2.0. see LICENSE and NOTICE for attribution. i used existing weights throughout, and the test pages remain private.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for WhiteHades/manga-ocr-browser

Quantized
(12)
this model