Views
No views yet
1/Manga_Project
2├── images/
3│ ├── train/ (4,416 images)
4│ ├── val/ (579 images)
5│ └── test/ (600 images)
6└── labels/ (Corresponding YOLO .txt files)| Model | Class | Precision | Recall | mAP@50 | mAP@50-95 | Params |
|---|---|---|---|---|---|---|
| YOLO26n | Text | 0.929 | 0.863 | 0.947 | 0.765 | 2.4M |
| YOLO26s | Text | 0.937 | 0.893 | 0.961 | 0.802 | 9.5M |
ultralytics package.1from ultralytics import YOLO
2
3# Load the model
4model = YOLO('model.pt')
5
6# Run inference
7# Note: imgsz=1280 is recommended for small text bubbles
8results = model.predict('path/to/manga_page.jpg', imgsz=1280, conf=0.25)
9
10# Display result
11results[0].show()1import onnxruntime as ort
2import numpy as np
3import cv2
4
5# Load model
6session = ort.InferenceSession('model.onnx')
7
8# Preprocess Image
9img = cv2.imread('test.jpg')
10img = cv2.resize(img, (1280, 1280))
11img = img.transpose((2, 0, 1)) # HWC -> CHW
12img = np.expand_dims(img, axis=0) # Add batch dimension
13img = img.astype(np.float32) / 255.0 # Normalize
14
15# Run Inference
16input_name = session.get_inputs()[0].name
17outputs = session.run(None, {input_name: img})
18
19print("Output Shape:", outputs[0].shape)
20# Returns (1, 300, 6)


1model.train(
2 data='dataset/data.yaml',
3 epochs=100,
4 patience=10,
5 batch=8,
6 lr0=0.0001,
7 imgsz=1280,
8 device='cuda'
9)1@article{multimedia_aizawa_2020,
2 author={Kiyoharu Aizawa and Azuma Fujimoto and Atsushi Otsubo and Toru Ogawa and Yusuke Matsui and Koki Tsubota and Hikaru Ikuta},
3 title={Building a Manga Dataset ``Manga109'' with Annotations for Multimedia Applications},
4 journal={IEEE MultiMedia},
5 volume={27},
6 number={2},
7 pages={8--18},
8 doi={10.1109/mmul.2020.2987895},
9 year={2020}
10}1@misc{magiv2,
2 title={Tails Tell Tales: Chapter-Wide Manga Transcriptions with Character Names},
3 author={Ragav Sachdeva and Gyungin Shin and Andrew Zisserman},
4 year={2024},
5 eprint={2408.00298},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV},
8 url={[https://arxiv.org/abs/2408.00298](https://arxiv.org/abs/2408.00298)},
9}