/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
hayai · dense
Библиотека
transformers
Опубликована
13 ноя 2026

hayai-ocr-v2.7-supernova

Описание изображенийИзображение → текст4 профессии

Модель распознаёт японский, китайский, корейский и английский текст в обрезанных фрагментах манги и комиксов.

6 210скачиваний за 30 дней13лайковвеса обновлены22 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Hayai OCR v2.7 Supernova — модель оптического распознавания текста от JustANormalTinkerer, предназначенная для чтения текста в заранее выделенных фрагментах изображений. Модель содержит около 157 млн параметров: визуальный энкодер SigLIP2 NaFlex соединён с причинным декодером GQA из 12 слоёв. Она распознаёт японский, китайский, корейский и английский текст, включая вертикальную, изогнутую, стилизованную и плотную надпись, за один проход без отдельного детектора строк.

Версия включает 8 000 шагов дополнительного дообучения на сложных примерах многоязычного синтетического набора с последующим объединением весов WiSE-FT с базовой моделью Stage 3. Это улучшает распознавание длинного текста и плотных фрагментов, сохраняя качество на стандартных диалогах и звуковых эффектах. На приведённых авторами тестах JMangaBench модель показала сильные результаты для манги; режим auto адаптивно выбирает бюджет визуальных патчей.

Модель подходит для распознавания текста в речевых облаках, блоках повествования и фрагментах звуковых эффектов комиксов и манги. Полные страницы необходимо предварительно обрезать или обработать детектором текста либо облаков. Качество на коротких фрагментах чувствительно к ошибке в одном символе, а распознавание китайского, корейского и английского текста обучалось преимущественно на синтетических данных, поэтому на реальных шумных изображениях этих языков результаты могут быть менее стабильными. Для пользовательского кода требуется Transformers с trust_remote_code=True. Лицензия — Apache-2.0.

Сценарии применения

  • распознавание текста в речевых облаках манги
  • извлечение вертикальных японских надписей из комиксов
  • чтение звуковых эффектов и стилизованных надписей
  • распознавание текста в блоках повествования
  • извлечение многострочного текста из обрезанных фрагментов страниц

Ограничения

Модель принимает обрезанные фрагменты с текстом, а не целые страницы: для страниц нужен предварительный детектор или этап кадрирования. Качество на коротких фрагментах чувствительно к ошибкам отдельных символов; на реальных шумных китайских, корейских и английских изображениях точность может варьироваться.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Hayai OCR v2.7 Supernova

Hayai OCR v2.7 Supernova is a ~157M-parameter crop-level OCR model for Japanese, Chinese, Korean, and English text. It pairs a SigLIP2 NaFlex vision encoder with a 12-layer causal GQA decoder to transcribe dense, stylized, vertical, horizontal, and curved text in a single pass without a separate line detector.

This checkpoint updates v2.7 with an additional 8,000-step fine-tuning run on the edgecases split of JustANormalTinkerer/hayai-synth-multilingual, merged back into the Stage 3 base weights using WiSE-FT (weight-space ensembling). Merging instead of replacing the weights improves long-text and dense-crop recognition while preserving accuracy on standard dialogue and sound effects.

Key Results

  • JMangaBench_Read v1.3.3: 98.84 composite (99.21 1-NED, 95.70% EM, 0.81% CER) with max_patches="auto" at 92.01 images/s wall throughput. Fixed p256 reaches 98.82 composite (95.78% EM, 0.88% CER) at 99.06 images/s, and even p128 reaches 98.61 composite at 148.78 images/s.
  • JMangaBench_Hard v1.0: 96.36 score (3.98% CER, 89.19% EM) with max_patches="auto" at 112.07 images/s, and 96.36 score at fixed p256. All evaluated patch tiers (p128, p256, p384, auto) exceed the previous #1 ranked leaderboard entry (95.98).
  • Long-text gains from WiSE-FT: On len_>32 crops in JMangaBench_Read, auto achieves 98.28 1-NED, 83.43% EM, and 3.53% CER; p256 reaches 81.66% EM (4.67% CER); and p512 reaches 84.62% EM (3.56% CER).
  • Single-pass adaptive routing (max_patches="auto"): Assigns each crop to a patch tier in {128, 192, 256, 384} directly from NaFlex scaling geometry (max_scale=4.0), sorting and batching by patch count with no second-pass re-runs.

Scope: Hayai is built for cropped text regions (speech bubbles, narration boxes, SFX crops). For full pages, run a text or bubble detector first.


Benchmarks

All JMangaBench results below were evaluated with RIN v1.2 (manga_nar_semantic_r10_20261020) with zero missing predictions. Higher is better for Composite, 1-NED, Score, EM, and EM NFKC; lower is better for CER.

1. JMangaBench_Read v1.3.3 (Dialogue, Narration, and Asides)

Evaluated on 7,789 crops from 1,847 pages (JMangaBench_Read):

ModelComposite1-NED (All)EM (%)CER (%)EM NFKC (%)
Hayai OCR v2.7 Supernova (auto)98.8499.2195.70 [95.23, 96.13]0.8183.85
Hayai OCR v2.7 Supernova (p256)98.8299.2195.78 [95.31, 96.20]0.8883.84
Hayai OCR v2.7 Supernova (p384)98.8199.1795.65 [95.17, 96.08]1.0083.77
Hayai OCR v2.7 Supernova (p512)98.7899.1695.56 [95.08, 95.99]0.8683.71
Hayai OCR v2.7 Supernova (p128)98.6198.9494.18 [93.64, 94.68]2.6182.66
nar-small-R16 (experimental)98.12—93.861.0882.23
manga-ocr-base-CPT-flex (#1 ranked)97.48—91.711.5080.60
Hayai v2.5 Nova (p384)96.63—88.202.3875.59
Hayai v2.5 Nova (p256)96.60—87.192.9574.84
Sectionn1-NEDEM (%)95% CICER (%)EM NFKC (%)
all7,78999.2195.70[95.23, 96.13]0.8183.85
new4,66099.2496.03[95.43, 96.55]0.6084.36
v12_kept3,12999.1695.21[94.40, 95.90]1.1383.09
printed5,87799.5797.07[96.61, 97.47]0.6484.01
non_printed1,91298.1191.47[90.14, 92.64]1.6283.37
hard78496.3781.76[78.90, 84.31]4.3772.07
gold1,26697.6487.84[85.92, 89.52]2.7978.12
gold_random_audit48299.7097.72[95.96, 98.72]0.4187.97
len_1-41,50498.3995.74[94.60, 96.65]1.6683.78
len_5-164,67599.3896.26[95.67, 96.76]0.5784.92
len_17-321,44199.6295.28[94.06, 96.26]0.3982.44
len_>3216998.2883.43[77.10, 88.28]3.5366.86
orient_vertical7,15899.2896.17[95.70, 96.59]0.6283.86
orient_horizontal43998.2890.21[87.07, 92.65]3.7984.28
orient_square19298.8190.62[85.67, 93.99]1.0082.29
role_dialogue6,94899.3096.09[95.60, 96.52]0.6683.59
role_narration50499.3395.24[93.01, 96.78]0.5886.31
role_other33197.1688.82[84.97, 91.78]4.6385.80
role_sfx691.6766.67[30.00, 90.32]6.2566.67
Sectionn1-NEDEM (%)95% CICER (%)EM NFKC (%)
all7,78999.2195.78[95.31, 96.20]0.8883.84
new4,66099.2596.09[95.50, 96.61]0.6784.29
v12_kept3,12999.1495.30[94.50, 95.99]1.2183.16
printed5,87799.5897.19[96.74, 97.58]0.7384.02
non_printed1,91298.0791.42[90.08, 92.60]1.6283.26
hard78496.3882.02[79.17, 84.55]5.3172.19
gold1,26697.6487.99[86.09, 89.67]3.3378.20
gold_random_audit48299.6997.72[95.96, 98.72]0.3487.97
len_1-41,50498.3395.48[94.31, 96.42]1.7383.44
len_5-164,67599.4296.53[95.97, 97.02]0.5185.05
len_17-321,44199.5995.28[94.06, 96.26]0.4182.51
len_>3216997.9881.66[75.14, 86.77]4.6765.09
orient_vertical7,15899.2696.19[95.72, 96.61]0.7283.77
orient_horizontal43998.4790.89[87.83, 93.24]3.4185.19
orient_square19298.8391.67[86.89, 94.81]1.1183.33
role_dialogue6,94899.2996.17[95.69, 96.60]0.7583.55
role_narration50499.3595.04[92.78, 96.62]0.6286.31
role_other33197.3189.12[85.31, 92.04]4.3786.40
role_sfx691.6766.67[30.00, 90.32]6.2566.67
Sectionn1-NEDEM (%)95% CICER (%)EM NFKC (%)
all7,78999.1795.65[95.17, 96.08]1.0083.77
new4,66099.2295.88[95.27, 96.41]0.9184.16
v12_kept3,12999.1195.30[94.50, 95.99]1.1583.19
printed5,87799.5397.07[96.61, 97.47]0.8983.95
non_printed1,91298.0891.27[89.92, 92.45]1.5783.21
hard78496.2381.63[78.77, 84.19]6.2872.07
gold1,26697.5387.60[85.67, 89.30]3.9477.96
gold_random_audit48299.6597.30[95.44, 98.42]0.3887.55
len_1-41,50498.3295.48[94.31, 96.42]1.7783.51
len_5-164,67599.3596.15[95.56, 96.66]0.6084.75
len_17-321,44199.6395.49[94.29, 96.45]0.3882.65
len_>3216998.0884.62[78.41, 89.28]5.7068.64
orient_vertical7,15899.2396.10[95.63, 96.53]0.8883.75
orient_horizontal43998.4990.43[87.32, 92.84]2.9384.74
orient_square19298.8190.62[85.67, 93.99]1.0082.29
role_dialogue6,94899.2696.03[95.54, 96.46]0.9283.49
role_narration50499.3195.44[93.25, 96.94]0.5886.51
role_other33197.2588.52[84.63, 91.52]3.7485.80
role_sfx691.6766.67[30.00, 90.32]6.2566.67
Sectionn1-NEDEM (%)95% CICER (%)EM NFKC (%)
all7,78999.1695.56[95.08, 95.99]0.8683.71
new4,66099.2095.75[95.13, 96.29]0.6584.03
v12_kept3,12999.1195.27[94.47, 95.96]1.1883.22
printed5,87799.5397.02[96.56, 97.43]0.6883.99
non_printed1,91298.0391.06[89.69, 92.25]1.7082.85
hard78496.2481.25[78.37, 83.83]4.4271.43
gold1,26697.5587.44[85.50, 89.15]2.8377.65
gold_random_audit48299.6897.51[95.70, 98.57]0.4187.76
len_1-41,50498.4095.61[94.46, 96.54]1.6883.78
len_5-164,67599.3296.04[95.45, 96.56]0.6184.68
len_17-321,44199.5695.21[93.98, 96.20]0.4582.37
len_>3216998.2684.62[78.41, 89.28]3.5667.46
orient_vertical7,15899.2296.03[95.55, 96.46]0.6783.74
orient_horizontal43998.4089.52[86.31, 92.05]3.8783.37
orient_square19298.6691.67[86.89, 94.81]0.9383.33
role_dialogue6,94899.2495.93[95.44, 96.37]0.7183.43
role_narration50499.4395.44[93.25, 96.94]0.5586.51
role_other33197.2288.52[84.63, 91.52]4.6985.50
role_sfx691.6766.67[30.00, 90.32]6.2566.67
Sectionn1-NEDEM (%)95% CICER (%)EM NFKC (%)
all7,78998.9494.18[93.64, 94.68]2.6182.66
new4,66099.0194.40[93.70, 95.02]1.7183.00
v12_kept3,12998.8593.86[92.97, 94.65]3.9982.13
printed5,87799.2695.46[94.89, 95.96]2.6882.81
non_printed1,91297.9690.27[88.86, 91.52]2.2682.17
hard78495.7179.72[76.76, 82.39]8.2971.05
gold1,26697.0685.78[83.75, 87.60]6.0377.09
gold_random_audit48299.2695.64[93.43, 97.13]2.6086.93
len_1-41,50498.4195.68[94.53, 96.59]1.6283.91
len_5-164,67599.3896.11[95.51, 96.62]0.5684.62
len_17-321,44199.2391.74[90.21, 93.05]2.5379.94
len_>3216989.2048.52[41.10, 56.00]16.3140.24
orient_vertical7,15899.0894.72[94.18, 95.21]1.9982.69
orient_horizontal43997.4288.61[85.30, 91.25]9.4883.60
orient_square19297.2186.98[81.48, 91.02]8.0679.17
role_dialogue6,94899.0894.67[94.12, 95.18]2.2282.54
role_narration50498.7991.87[89.15, 93.95]2.7782.94
role_other33196.4487.92[83.96, 91.00]10.9584.89
role_sfx691.6766.67[30.00, 90.32]6.2566.67

2. JMangaBench_Hard v1.0 (SFX, Stylized Lettering, and Handwriting)

Evaluated on 3,015 difficult crops from 1,339 pages (JMangaBench_Hard):

ModelScoreCER (%)EM (%)EM NFKC (%)
Hayai OCR v2.7 Supernova (auto)96.363.9889.19 [88.03, 90.25]88.86
Hayai OCR v2.7 Supernova (p256)96.364.2389.12 [87.96, 90.18]88.76
Hayai OCR v2.7 Supernova (p384)96.353.9789.32 [88.17, 90.37]88.99
Hayai OCR v2.7 Supernova (p128)96.214.5188.92 [87.75, 89.99]88.56
manga-ocr-ar-experimental (#1 ranked)95.984.7588.5288.26
nar-small-R16 (experimental)93.927.2182.8982.62
PaddleOCR-VL-1.6 manga LoRA v691.879.2178.5769.55
Hayai v2.5 Nova (p256)88.8711.6172.3471.87
SectionnScoreCER (%)EM (%)95% CIEM NFKC (%)
all3,01596.363.9889.19[88.03, 90.25]88.86
agreed2,16198.162.0594.45[93.40, 95.34]93.98
human85491.838.2275.88[72.90, 78.63]75.88
box_adjusted7587.7311.5970.67[59.56, 79.76]70.67
style_sfx_lettering1,83596.314.3589.81[88.34, 91.11]89.59
style_handwritten1,05696.433.5288.73[86.68, 90.50]88.16
style_decorative_font7396.304.0180.82[70.34, 88.22]82.19
style_printed5196.984.0888.24[76.62, 94.50]86.27
orient_vertical1,84296.174.1188.49[86.95, 89.87]88.17
orient_horizontal67097.372.8491.94[89.63, 93.77]91.49
orient_curved_or_diagonal50195.755.1488.22[85.11, 90.76]88.02
len_1-286796.733.2594.69[93.00, 96.00]94.69
len_3-41,57696.553.6890.16[88.60, 91.54]89.78
len_5-942895.294.7380.37[76.35, 83.86]79.21
len_>=1014495.304.3771.53[63.67, 78.26]72.22
SectionnScoreCER (%)EM (%)95% CIEM NFKC (%)
all3,01596.364.2389.12[87.96, 90.18]88.76
agreed2,16198.182.1194.35[93.30, 95.25]93.89
human85491.768.8775.88[72.90, 78.63]75.76
box_adjusted7587.3114.6370.67[59.56, 79.76]70.67
style_sfx_lettering1,83596.454.2690.19[88.74, 91.47]89.92
style_handwritten1,05696.214.0188.07[85.97, 89.89]87.50
style_decorative_font7395.826.0278.08[67.32, 86.03]79.45
style_printed5197.113.6788.24[76.62, 94.50]86.27
orient_vertical1,84296.114.2888.27[86.72, 89.66]87.95
orient_horizontal67097.453.1391.94[89.63, 93.77]91.34
orient_curved_or_diagonal50195.875.6588.62[85.54, 91.11]88.42
len_1-286797.002.9495.16[93.52, 96.40]95.04
len_3-41,57696.563.6490.16[88.60, 91.54]89.78
len_5-942894.985.1180.61[76.60, 84.07]79.44
len_>=1014494.455.5866.67[58.62, 73.84]67.36
SectionnScoreCER (%)EM (%)95% CIEM NFKC (%)
all3,01596.353.9789.32[88.17, 90.37]88.99
agreed2,16198.082.1594.40[93.35, 95.29]93.94
human85491.997.9476.46[73.50, 79.19]76.46
box_adjusted7587.3512.2070.67[59.56, 79.76]70.67
style_sfx_lettering1,83596.364.3089.81[88.34, 91.11]89.59
style_handwritten1,05696.243.7188.92[86.88, 90.67]88.35
style_decorative_font7397.352.7483.56[73.43, 90.34]84.93
style_printed5197.113.6788.24[76.62, 94.50]86.27
orient_vertical1,84296.124.2488.27[86.72, 89.66]87.95
orient_horizontal67097.262.6692.39[90.13, 94.16]91.94
orient_curved_or_diagonal50196.004.8689.22[86.20, 91.64]89.02
len_1-286796.773.1394.93[93.26, 96.20]94.93
len_3-41,57696.503.7390.16[88.60, 91.54]89.78
len_5-942895.254.8079.91[75.85, 83.43]78.74
len_>=1014495.554.1474.31[66.60, 80.75]75.00
SectionnScoreCER (%)EM (%)95% CIEM NFKC (%)
all3,01596.214.5188.92[87.75, 89.99]88.56
agreed2,16198.062.2894.17[93.10, 95.08]93.66
human85491.529.3875.64[72.65, 78.40]75.64
box_adjusted7587.9814.0270.67[59.56, 79.76]70.67
style_sfx_lettering1,83596.394.4990.08[88.63, 91.37]89.81
style_handwritten1,05695.954.4487.88[85.77, 89.71]87.31
style_decorative_font7395.294.9378.08[67.32, 86.03]79.45
style_printed5196.105.3184.31[71.99, 91.83]82.35
orient_vertical1,84296.094.5588.38[86.84, 89.77]88.00
orient_horizontal67097.053.7191.49[89.14, 93.38]91.04
orient_curved_or_diagonal50195.515.5987.62[84.45, 90.23]87.43
len_1-286796.813.1394.93[93.26, 96.20]94.93
len_3-41,57696.503.7090.04[88.46, 91.42]89.59
len_5-942894.845.2679.91[75.85, 83.43]78.74
len_>=1014493.406.6567.36[59.34, 74.48]68.06

3. Throughput

Measured on a single Tesla T4 in fp16 with CUDA Graphs enabled (auto runs single-pass without escalation). Average transcription length is 11.9 characters/image on JMangaBench_Read (7,789 crops) and 4.1 characters/image on JMangaBench_Hard (3,015 crops).

Benchmark & ModeWall Time (s)Wall Throughput (img/s)Pure GPU (img/s)Peak Batch (img/s)Generation Speed (chars/s)Planning (ms)Host Overhead
Read (p128)52.35148.78149.34222.781,774.3750.10.37%
Read (p256)78.6399.0699.34142.701,178.7257.10.29%
Read (auto)84.6592.0192.33282.761,094.1729.30.34%
Read (p384)100.6977.3677.50100.90921.2231.50.19%
Read (p512)128.2360.7460.8376.05722.3227.50.15%
Hard (p128)15.63192.86193.73311.86793.6585.40.45%
Hard (auto)26.90112.07112.53330.05462.4905.90.41%
Hard (p384)38.0679.2279.37264.76327.0179.50.20%

Quickstart

from PIL import Image
from transformers import AutoModel, AutoProcessor

MODEL_ID = "JustANormalTinkerer/hayai-ocr-v2.7-supernova"

model = AutoModel.from_pretrained(MODEL_ID, trust_remote_code=True).cuda().eval()
processor = AutoProcessor.from_pretrained(MODEL_ID, trust_remote_code=True)

# Single crop (Japanese, Chinese, Korean, or English) -> str
image = Image.open("example.png").convert("RGB")
text = model.ocr(
    image,
    processor,
    max_patches="auto",
    max_new_tokens=128,
    use_cuda_graph=True,
)
print(text)

# Batched crops -> automatically bucketed and sorted by patch count
texts = model.ocr(
    [image] * 128,
    processor,
    max_patches="auto",
    batch_size=64,
    escalate=False,
    max_new_tokens=128,
)
  • trust_remote_code=True is required for the custom projector, depth fusion, split block-causal attention, 2D mRoPE, and NaFlex patch routing.
  • model.generate(...) is also supported for custom pipelines. Keep greedy decoding and repetition_penalty=1.0.
  • Choosing max_patches: "auto" is the best general default, giving the lowest overall CER and strong long-text accuracy. Fixed 256 is nearly identical on standard dialogue while running slightly faster; fixed 128 maximizes speed and keeps memory minimal when crops are short; fixed 384 or 512 is useful if your workload is dominated by dense, multi-line text blocks.
  • Set HAYAI_DISABLE_COMPILE=1 if you want to disable torch.compile(dynamic=True) on custom kernels (inference already runs eagerly inside inference_mode).
  • Additional utilities are available at hayai-ocr on GitHub.

Official JMangaBench scoring uses RIN v1.2. For simple local cleanup:

import re
import unicodedata

def normalize_text(text: str) -> str:
    if not text:
        return ""
    text = unicodedata.normalize("NFKC", str(text))
    text = re.sub(r"[\r\n\t]+", " ", text)

    cjk_char = r"[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf\uac00-\ud7af]"
    text = re.sub(f"({cjk_char})\\s+({cjk_char})", r"\1\2", text)

    return re.sub(r"\s+", " ", text).strip()

Architecture

v2.7 Supernova combines a SigLIP2 NaFlex vision encoder (d_vision=768, 12 layers) with a 12-layer GQA decoder (d_model=512, d_ffn=2048, 8 query heads, 2 KV heads, d_head=64, SwiGLU, QK RMSNorm).

Hayai OCR v2.7 Supernova architecture

A few design choices carry most of the accuracy and speed improvements over v2.5:

  1. Dual-order VisualCausalFlow: Inside DSCProjector, a zero-initialized 3x3 depthwise spatial mixer captures local stroke continuity, followed by an 8-head gated attention block over the compressed 2D grid. Four heads run row-major left-to-right (for English, Chinese, Korean, and horizontal Japanese) and four run column-major right-to-left, top-to-bottom (for vertical manga layouts).
  2. Multi-depth feature fusion (StaticDepthFusion): Instead of using only the final SigLIP2 layer, all 12 encoder depths are 2x2 average-pooled to match the unshuffle grid, normalized with per-depth RMSNorm, projected to d_model, and combined with learned per-decoder-layer softmax weights and per-channel gains. Earlier layers retain sharp stroke details (helpful for dense kanji/hanzi, dakuten/handakuten, and tight kerning), while deeper layers carry broader context.
  3. IDS supervision and offset 2D mRoPE: A 226-class Ideographic Description Sequence auxiliary head at decoder layer 6 sharpens character structure during training (drop_ids_head() removes it for pure inference). Text rotary indices are offset by text_rope_offset=64.0 to separate them from 2D visual coordinates, paired with antialiased bilinear interpolation of SigLIP2 position embeddings.
  4. Fused inference engine (_FastEngine): During prefill, the final decoder layer prunes vision queries so only text tokens run attention and FFN. Attention is split into vision-to-vision and causal text paths with KV-head-folded GQA, fused QKV/SwiGLU projections, fused QK-norm + RoPE, and pre-folded residual scales. plan_batches buckets crops by patch tier and sorts by (m_vis, nh * nw), packing ragged batches whenever padding exceeds 5% and running decode steps inside CUDA Graphs.

Version Comparison

Componentv2.1v2.5 Novav2.7 Supernova
Vision projector2-layer MLP (1->1)DSCProjector (4->1 unshuffle + MLP)DSC + 3x3 DW mix + dual-order VisualCausalFlow
Vision featuresLast encoder layerLast encoder layerAll 12 encoder depths (StaticDepthFusion)
Decoder vision tokensN patchesN / 4 tokensN / 4 tokens
Positional encoding2D mRoPE (offset 0)2D mRoPE (offset 0)2D mRoPE (text_rope_offset=64.0) + antialiased pos-embed
Decoder attentionStandard block-causalLearnable residual scalingResidual scaling + final-layer query pruning + split GQA
Inference engineDynamic greedy loopStatic KV + RoPE cachePacked vision + CUDA Graphs + folded weights + auto bucketing
Auxiliary lossNone226-class IDS head226-class IDS head (layer 6; drop_ids_head() supported)
Multilingual CJK+ENBaseline60k alignment stageStage 2/3 multilingual corpus + dual-order flow + WiSE-FT edgecases

Training

Training started from the v2.5 checkpoint, with all newly added v2.7 modules (StaticDepthFusion, VisualCausalFlow, and the 3x3 depthwise mixer) zero-initialized as residual branches so optimization began cleanly from v2.5 weights.

The base stages ran on Kaggle using 2x NVIDIA Tesla T4 GPUs (micro-batch size 64 per GPU with gradient accumulation to an effective batch size of 128):

  1. Stage 1 — Japanese and Manga Corpus (2 epochs): JustANormalTinkerer/animetext-ocr-jp-only-v2 + JustANormalTinkerer/hayai-synth-dataset-v2
  2. Stage 2 — Multilingual CJK + English Expansion (1 epoch): Stage 1 datasets + JustANormalTinkerer/hayai-synth-multilingual
  3. Stage 3 — Multilingual Refinement (2 epochs): JustANormalTinkerer/animetext-ocr-jp-only-v2 + JustANormalTinkerer/hayai-synth-multilingual
  4. Stage 4 — Long-Text Edgecase Fine-Tuning and WiSE-FT Merge: To strengthen transcription on long passages and dense multi-line crops without regressing on standard manga dialogue or SFX, the Stage 3 checkpoint was fine-tuned for 8,000 steps on the edgecases split of JustANormalTinkerer/hayai-synth-multilingual and then combined back with the Stage 3 weights via WiSE-FT.

Best Practices and Limitations

  • Keep repetition_penalty=1.0: Repeated characters are common and valid in CJK text (such as onomatopoeia like ドキドキ, reduplication, and repeated numbers). Any penalty above 1.0 hurts accuracy.
  • Use max_patches="auto" for mixed workloads: It matches each crop to the right patch budget in a single pass. If you need strictly uniform tensor shapes or want slightly higher speed on mostly short dialogue crops, max_patches=256 is a strong alternative.
  • Crop-level input only: Passing full comic pages without cropping text regions will not work.
  • Short-text sensitivity: Many manga crops contain only 1 to 4 characters, where a single misread glyph drops Exact Match immediately.
  • Multilingual domain gap: Chinese, Korean, and English recognition is trained primarily on synthetic data, so accuracy on noisy real-world non-Japanese crops may vary.

Citations

@inproceedings{baek2026mangav26,
  title     = {{Manga109-v2026: Revisiting Manga109 Annotations for Modern Manga Understanding}},
  author    = {Baek, Jeonghun and Miyai, Atsuyuki and Onohara, Shota and Ikuta, Hikaru and Aizawa, Kiyoharu},
  booktitle = {Culture x AI Workshop at ICML 2026},
  year      = {2026},
}

@article{multimedia_aizawa_2020,
  author    = {Kiyoharu Aizawa and Azuma Fujimoto and Atsushi Otsubo and Toru Ogawa and Yusuke Matsui and Koki Tsubota and Hikaru Ikuta},
  title     = {Building a Manga Dataset "Manga109" with Annotations for Multimedia Applications},
  journal   = {IEEE MultiMedia},
  volume    = {27},
  number    = {2},
  pages     = {8--18},
  year      = {2020}
}

@inproceedings{baek2022COO,
  title     = {COO: Comic Onomatopoeia Dataset for Recognizing Arbitrary or Truncated Texts},
  author    = {Baek, Jeonghun and Matsui, Yusuke and Aizawa, Kiyoharu},
  booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
  year      = {2022}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
HayaiModel
Ревизия весов
90fc614

0 моделей