WhiteHades's picture
add the pruned comic text detector
0d47909 verified
|
Raw History Blame Contribute Delete
1.1 kB
---
license: agpl-3.0
tags:
- onnx
- manga
- text-detection
base_model: mayocream/koharu
---
# comic text detector browser
the comic text detector from [mayocream/koharu](https://huggingface.co/mayocream/koharu/tree/15439cba09df388c51de6e47c6020bc31edab41f) (`comictextdetector.onnx`), made smaller and faster for ONNX Runtime Web.
- channels whose weights are all zero or denormal (below 1e-30) are removed. their outputs are unchanged; the largest difference on test pages is 1.3e-6.
- only the block and line outputs are kept, renamed `blocks_8`, `blocks_16`, `blocks_32` and `lines`. the text mask and line borders are removed.
- the input takes any height and width that are multiples of 32.
- the weights are in `comic_text_detector.data`, beside `comic_text_detector.onnx`. pass it to ONNX Runtime as external data.
the download is 28.8 mb, down from 94.7 mb. on one WebAssembly thread a 1024 px page takes about 1.1 s, down from 2.6 s.
`build.py` makes these files from the source model. the model keeps the GNU Affero General Public License 3.0 of its source; see `LICENSE`.