Downloads · 30 days
0
masoniis/magi-onnx
magi-onnx is a object detection model from masoniis. Use it when you need objects located in an image. It is set up for onnx. The card lists the license as other.
ONNX export of ragavsachdeva/magi, containing only the detection and association sub-networks. The OCR sub-network has been intentionally omitted so users can substitute their own OCR model appropriate to their context.
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2026
Repo size
524 MB
Likes
0
Public
Click a slice to open those files.
.data521 MB · 99%
From the Hugging Face model README
ONNX export of ragavsachdeva/magi, containing only the detection and association sub-networks. The OCR sub-network has been intentionally omitted so users can substitute their own OCR model appropriate to their context.
| File | Description |
|---|---|
detection_transformer.onnx | ConditionalDETR backbone — preprocessed manga page → object tokens + reference points |
crop_embedding_model.onnx | ViTMAE — 224×224 character crop images → CLS embeddings |
bbox_predictor.onnx | MLP — object tokens → bounding boxes (xywh, normalised) |
class_labels_classifier.onnx | Linear — object tokens → class logits (character / text / panel) |
text_character_matching_head.onnx | MLP — text+character token pairs → association score |
character_character_matching_head.onnx | MLP — character+character token pairs → clustering score |
is_this_text_a_dialogue.onnx | MLP — text tokens → dialogue vs. non-dialogue confidence |
MagiProcessor from the original repo
(or reimplement: resize to 1024×1024, normalise, build pixel mask)detection_transformer.onnx → last_hidden_state, reference_pointslast_hidden_state[:, :-5] (last 5 are special tokens)bbox_predictor.onnx and class_labels_classifier.onnx on object tokenscrop_embedding_model.onnxcharacter_character_matching_head.onnx to cluster characterstext_character_matching_head.onnx to associate speech bubbles to speakersis_this_text_a_dialogue.onnx to filter non-dialogue textConversion script: github.com/masoniis/magi-onnx
The provided model and datasets are available for unrestricted use in personal, research, non-commercial, and not-for-profit endeavors. For any other usage scenarios, kindly contact me via email, providing a detailed description of your requirements, to establish a tailored licensing arrangement. My contact information can be found on my website: ragavsachdeva.github.io
@misc{sachdeva2024manga,
title={The Manga Whisperer: Automatically Generating Transcriptions for Comics},
author={Ragav Sachdeva and Andrew Zisserman},
year={2024},
eprint={2401.10224},
archivePrefix={arXiv},
primaryClass={cs.CV}
}