The Manga Whisperer: Automatically Generating Transcriptions for Comics
Paper β’ 2401.10224 β’ Published β’ 4
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}
}
Base model
ragavsachdeva/magi