/ Модель

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

Размер весов
238 МБ
Лицензия
Apache 2.0
Библиотека
ultralytics
Опубликована
30 июн 2025

best-comic-panel-detection

Поиск объектовИзображение → bounding_boxes3 профессии

Дообученная YOLOv12x обнаруживает панели комиксов и выделяет их прямоугольными рамками на страницах.

11 821скачиваний за 30 дней14лайковвеса обновлены30 июн 2025

Бенчмарки

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

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

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

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

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

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

Модель mosesb/best-comic-panel-detection — дообученный вариант YOLOv12x для обнаружения отдельных панелей на страницах комиксов. Она возвращает ограничивающие рамки класса «Comic Panel» и предназначена для автоматической оцифровки и структурирования страниц. Модель обучена на пользовательском размеченном наборе данных Custom-Workflow-3-Object-Detection-1 с использованием PyTorch и Ultralytics.

Её можно применять для подготовки страниц к цифровому чтению, выделения панелей перед извлечением текста или персонажей, а также для анализа композиции страниц и создания датасетов. В README указаны высокие результаты на валидационной выборке: mAP50 0,991 и mAP50-95 0,985; это показатели на данных обучения и не гарантируют аналогичного качества на комиксах с другими стилями или разметкой. Модель выдаёт прямоугольные рамки и может хуже работать с сильно неправильными или перекрывающимися панелями. Лицензия репозитория — Apache-2.0.

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

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

Ограничения

Модель обучена находить панели в форме прямоугольных рамок и может хуже справляться с сильно неправильными или перекрывающимися панелями. Высокие метрики приведены для валидационной выборки и не гарантируют такого же качества на других стилях комиксов.

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

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

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

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

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

Открыть на Hugging Face

YOLOv12 for Comic Panel Detection

This repository contains a YOLOv12x object detection model fine-tuned to detect individual panels in comic book pages. The model identifies the bounding boxes for each panel, making it a valuable tool for digitizing comics, extracting content, or building datasets for downstream analysis.

This model was trained in PyTorch using the powerful ultralytics library and demonstrates high performance on a custom-annotated dataset of comic pages.

Visit this space to try out the model right now: The_Best_Comic_Panel_Detection.

Model Details

  • Architecture: YOLOv12x (the extra-large variant)
  • Fine-tuned on: A custom Roboflow dataset named "Custom-Workflow-3-Object-Detection-1".
  • Classes: Comic Panel
  • Frameworks: PyTorch, Ultralytics

How to Get Started

You can easily use this model with the ultralytics library. The model file best.pt from this repository is required.

# 1. Install Ultralytics
!pip install ultralytics

from ultralytics import YOLO
from PIL import Image

# 2. Load the fine-tuned model
# Make sure 'best.pt' is in your current directory
model = YOLO('best.pt')

# 3. Run inference on an image
image_path = 'path/to/your/comic_page.jpg'
results = model.predict(source=image_path)

# 4. Process and visualize results
# The 'results' object contains bounding boxes, classes, and confidence scores
for result in results:
    # Plotting will draw the bounding boxes on the image
    im_array = result.plot()
    im = Image.fromarray(im_array[..., ::-1]) # Convert BGR to RGB
    im.show() # Display the image
    # or
    # im.save('prediction_result.jpg')

# You can also access bounding box data directly
for box in results[0].boxes:
    print("Class:", model.names[int(box.cls)])
    print("Confidence:", box.conf.item())
    print("Coordinates (xyxy):", box.xyxy[0].tolist())
    print("-" * 20)

Training Procedure

The model was fine-tuned using transfer learning from a YOLOv12x checkpoint pre-trained on the COCO dataset.

Training Hyperparameters

  • Image Size: 640x640
  • Batch Size: 16
  • Optimizer: AdamW (lr=0.002)
  • Epochs: 200
  • Patience: 100 epochs for early stopping

Training and Validation Metrics

Evaluation

The model's performance was evaluated on the validation set during training. The final metrics are based on the checkpoint that achieved the highest mAP50-95.

Key Performance Metrics

MetricValueDescription
mAP500.991Mean Average Precision at IoU threshold 0.50.
mAP50-950.985Mean Average Precision averaged over IoU thresholds from 0.50 to 0.95.

The model achieves near-perfect precision and recall on the validation data, indicating a strong ability to correctly identify comic panels within the styles present in the dataset.

Confusion Matrix

Qualitative Results

The model correctly identifies panels of various sizes and layouts in the validation set.

Validation Predictions

Intended Use and Limitations

This model is intended for applications requiring the segmentation of comic book pages into their constituent panels. This can be a pre-processing step for:

  • Creating structured digital reading experiences.
  • Extracting text or characters from individual panels.
  • Analyzing comic book layouts and artistic styles.

The model has been tested in real world applications and has shown promising results.

Limitations

  • Non-Rectangular Panels: The model is trained to detect rectangular bounding boxes and may struggle with highly irregular or overlapping panel shapes.

Acknowledgements

  • Ultralytics for the amazing YOLOv12 model and library.
  • Roboflow: for their dataset hosting platform and custom-workflow-3-object-detection-g24r5-fmfkb for compiling and annotating this incredible dataset.

This model card is based on the training notebook YOLOV12-Comic-Panel-Detection.

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

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

GPU в ailist

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

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

Модели Ultralytics YOLO требуют отдельного рантайма.

Ревизия весов
bbab115

0 моделей