/ Модель

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

Лицензия
AGPL 3.0
Библиотека
ax-doclayout
Опубликована
19 окт 2026

AXDocLayout-M-v1.3-CUDA-TF32

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

Детектор AutomatosX на базе RT-DETRv2, который находит области структуры на RGB-изображениях страниц документов.

11скачиваний за 30 дней0лайковвеса обновлены19 окт 2026

Бенчмарки

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

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

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

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

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

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

AXDocLayout-M v1.3 CUDA TF32 — детектор областей структуры документов от AutomatosX на архитектуре RT-DETRv2 rtdetrv2_r50vd_m. Он принимает декодированное RGB-изображение страницы и возвращает метки классов, оценки уверенности и ограничивающие рамки в координатах исходного растра. Для входа требуется сохранить пропорции, уменьшить длинную сторону до 1024 пикселей и дополнить изображение до 1024 × 1024; модель рассчитана на запуск с CUDA TF32. Весовые файлы FP32 доступны в форматах safetensors и ONNX, для ONNX используется opset 16.

Модель подходит для автоматического обнаружения элементов разметки страниц, например подписей, сносок и формул, как этапа обработки документов. Она не открывает PDF, не распознаёт и не извлекает текст, не определяет порядок чтения или иерархию и не восстанавливает ячейки таблиц. Внутренние оценки разработчика получены на одном GPU и не являются независимым воспроизводимым сравнением; перед внедрением модель следует проверить на типичных для задачи документах. Лицензия — AGPL-3.0.

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

  • поиск подписей к иллюстрациям на страницах
  • обнаружение сносок в документах
  • локализация формул на страницах
  • разметка областей документа перед последующей обработкой

Ограничения

Принимает только декодированные RGB-растра страниц и не выполняет OCR, извлечение текста, определение порядка чтения или восстановление ячеек таблиц. Внутренние оценки не являются независимым воспроизводимым бенчмарком; результаты GPU могут немного различаться между запусками.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

AXDocLayout-M v1.3 CUDA TF32

AX DocLayout detects layout regions in a decoded RGB page image and returns class labels, confidence scores and boxes in the original raster coordinates. This model updates the weights while retaining the v1.2 CUDA TF32 inference standard. The predecessor remains available at AXDocLayout-M v1.2 CUDA TF32.

Model and runtime

Architecture: RT-DETRv2 rtdetrv2_r50vd_m. Stored weights and ONNX inputs are FP32. CUDA TF32 is the execution policy, not a BF16 weight format. The bundle contains FP32 safetensors, a standard-operator ONNX graph (opset 16) and the complete inference source. Integer quantization is not used.

The ONNX backend requires Linux x86-64, Python 3.12 or 3.13 and an NVIDIA TF32-capable Ampere or newer device with a compatible CUDA 12.8 driver. Install the pinned ONNX Runtime GPU 1.23.2, CUDA 12.8 and cuDNN 9 dependencies through the onnx extra. CUDAExecutionProvider is required, TF32 is explicitly enabled, and startup checks verify recognized compute placement. Shape/control nodes may use the CPU. An unavailable CUDA backend raises an error.

A separate explicit PyTorch CPU FP32 reference is available with the torch extra and backend="pytorch". Vectorized postprocessing follows v1.2.

Input and output

Input is one HWC uint8 RGB raster. Preserve aspect ratio, resize the long edge to 1024, center-pad to 1024 x 1024 with white, and convert to NCHW float32 in [0, 1]. Contract: rgb-letterbox-1024/1.

Direct ONNX inputs are images float32 [N, 3, 1024, 1024] and orig_target_sizes int64 [N, 2], always [1024, 1024] per image. Outputs are labels, boxes, scores. Raw boxes are letterbox-space xyxy; the Python API undoes padding/scaling and clips boxes to the page. Default score floor is 0.30; invalid or reserved labels are removed.

The JSON schema is ax-doclayout.detection/1; taxonomy is ax-doclayout-11/1. Boxes use half-open pixel edges, origin top-left, x rightward, y downward.

IDLabel
1caption
2footnote
3formula
4list_item
5page_footer
6page_header
7picture
8section_header
9table
10text
11title

Qualification and limitations

The following aggregate measurements are internal development results, not independent acceptance or evidence of universal superiority. Both releases were measured on one NVIDIA RTX PRO 6000 Blackwell Server Edition with the same CUDA TF32 runtime. AP averages IoU thresholds 0.50:0.95; AP50, AP70 and AP90 use their respective IoU thresholds. Scores are percentages.

Internal evaluationModelAPAP50AP70AP90
Av1.276.239790.989486.877955.9050
Av1.376.162390.948786.795355.8282
Bv1.266.746378.456371.808254.7579
Bv1.369.438580.466274.869158.1819
Cv1.290.853995.560294.532089.6775
Cv1.390.953095.334894.265289.3608

Results show mixed tradeoffs, including decreases in some AP and high-IoU metrics. Evaluation groups are anonymous and their definitions are not published; these numbers are not independently reproducible benchmarks and must not be combined with results from other evaluation contexts. Validate on representative inputs before deployment.

The public API latency below measures decoded RGB through PageStructure, excluding raster decoding, JSON serialization and worker transport. It uses the default score floor of 0.30 and batch one on the same host.

Same-host CUDA TF32 APIMedian msp95 msMean ms
v1.217.95918.26817.998
v1.317.94518.56318.013

The ONNX operator structure and numerical inference code follow v1.2; model weights and immutable artifact bindings are updated. The CUDA inference environment does not require PyTorch. GPU execution can vary slightly across invocations; no bitwise repeatability guarantee is made.

The detector accepts RGB page rasters. It does not open PDFs, perform OCR, extract text, predict reading order or hierarchy, or reconstruct table cells.

License

The model weights and modified inference source are AGPL-3.0-only. Commercial use is permitted subject to the license terms, including applicable source-disclosure obligations. See LICENSE and NOTICE. Preserved Apache-2.0 component notices and rights remain in NOTICE. The complete inference source is provided in inference/.

See the root README for immutable source installation and model revisions.

Quick start — CUDA + TF32

Requires supported Linux x86-64/NVIDIA CUDA setup and Python 3.12 or 3.13. Install the download helper, then the immutable inference source:

python -m pip install "huggingface-hub>=0.36,<2"
import subprocess
import sys
from huggingface_hub import snapshot_download

source = snapshot_download(
    "AutomatosX/AXDocLayout-M-v1.3-CUDA-TF32",
    revision="fc27bf145a5e056046ddc94dbe3fc12d45665cc4",
    allow_patterns=["inference/**"],
    token=False,
)
subprocess.check_call([
    sys.executable, "-m", "pip", "install", source + "/inference[onnx]"
])

Run CUDA-powered layout detection:

import numpy as np
from PIL import Image
from ax_doclayout import AXDocLayout, PageImage

model = AXDocLayout.from_pretrained(
    "AutomatosX/AXDocLayout-M-v1.3-CUDA-TF32",
    revision="d2725e733fa857100fe75781715276cee4e5a84f",
    backend="onnx",  # v1.3: CUDAExecutionProvider with TF32 enabled
)
page = PageImage(
    rgb=np.asarray(Image.open("page.png").convert("RGB"), dtype=np.uint8),
    page_index=0,
)
result = model.predict(page)
print(result.to_json())

For the separate CPU PyTorch comparison, install inference[torch] and explicitly select backend="pytorch". The CUDA ONNX loader does not switch to this backend automatically.

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

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

GPU в ailist

Универсальный рантайм · ax-doclayout · object-detection

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

Архитектура ? неизвестна transformers в образе рантайма.

Ревизия весов
1e8257e

0 моделей