Instructions to use mayocream/comic-layout-yolo26s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use mayocream/comic-layout-yolo26s with ultralytics:
# Couldn't find a valid YOLO version tag. # Replace XX with the correct version. from ultralytics import YOLOvXX model = YOLOvXX.from_pretrained("mayocream/comic-layout-yolo26s") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Comic Layout YOLO26s
SafeTensors distribution of a YOLO26s instance-segmentation model for comic-page layout analysis. It detects panels, visible text regions, and speech or narration balloons for OCR and translation workflows.
Labels
| ID | Label | Meaning |
|---|---|---|
| 0 | frame |
Panel or frame region |
| 1 | text |
Visible text region |
| 2 | balloon |
Speech, thought, or narration container |
The class order is checkpoint-sensitive and must not be changed.
Files
model.safetensors: model state dictionaryconfig.json: Koharu model and processor configurationyolo26s-seg.yaml: authoritative Ultralytics architecture configuration extracted from the checkpointexport-manifest.json: conversion hashes and validation results
The model uses a 1280-pixel inference size. Single-image prediction follows Ultralytics letterboxing with stride 32, confidence threshold 0.25, IoU threshold 0.7, and original-resolution masks.
Conversion
The MIT-licensed source checkpoint was published by ShadowB and trained with Ultralytics 8.4.43. This repository converts the original PyTorch archive to SafeTensors; it does not contain the pickle-based source checkpoint.
| Property | Value |
|---|---|
| Source revision | 3a860269ee0beb43ce9f31d82c7851441eb178ae |
| Source checkpoint SHA-256 | 0b4376e426fa96af3976afa6a2602421dacf2dec96ef87b4a44f5e8d4971cb6f |
| SafeTensors SHA-256 | d577a9e66bcf4e3445c0ee799d8407b7f095cb94010745f8eca763c20583de66 |
| Parameters | 11,436,269 |
| Tensors | 844 |
Conversion validation performs all of the following:
- Reloads every serialized tensor and checks exact equality.
- Loads the state dictionary into a freshly constructed YOLO26s segmentation model with strict key and shape checking.
- Compares all forward-output tensors on a deterministic input.
The recorded maximum absolute forward-output difference is 0.0.
Koharu
Koharu resolves config.json and model.safetensors directly from this repository. The public result contains the original image dimensions and a label, confidence, bounding box, area, and original-resolution binary mask for each instance.
License and provenance
The converted model is distributed under the upstream MIT license. Dataset terms remain separate from the model license. Validation metrics above are copied from the upstream checkpoint and have not been independently reproduced during conversion.
- Downloads last month
- -
Evaluation results
- Box mAP@0.5 on Book-level validation splitself-reported0.975
- Box mAP@0.5:0.95 on Book-level validation splitself-reported0.900
- Mask mAP@0.5 on Book-level validation splitself-reported0.970
- Mask mAP@0.5:0.95 on Book-level validation splitself-reported0.846