SAVRN
Search Contact SAVRN

Open-weight model · Object detection

surya_layout2

by Datalab datalab-to/surya_layout2

A lightweight document layout detection model used by Surya. It detects layout regions (text, tables, figures, headers, captions, equations, etc.) on a page image and runs on CPU or GPU.

Parameters
Context
Weights142.0 MB
Licenseopenrail
AccessOpen weights
Monthly Downloads21.5k

Model Card

By Datalab, published under openrail, revision 0aee81d5fd92.

A lightweight document layout detection model used by Surya. It detects layout regions (text, tables, figures, headers, captions, equations, etc.) on a page image and runs on CPU or GPU. This is the "fast" layout detector — a compact object detector that serves as a drop-in alternative to Surya's VLM-based layout model. Documentation, installation, and everything else lives in the Point the fast layout predictor at this checkpoint: Or make it the default so the CLI and library use it without an explicit path: Released under the AI Pubs OpenRAIL-M license (see LICENSE) — the same license as the surya-ocr-2 model weights.

Read Datalab's full model card

Surya Layout (fast)

A lightweight document layout detection model used by Surya. It detects layout regions (text, tables, figures, headers, captions, equations, etc.) on a page image and runs on CPU or GPU.

This is the "fast" layout detector — a compact object detector that serves as a drop-in alternative to Surya's VLM-based layout model.

Documentation, installation, and everything else lives in the Surya repository.

Usage

Install Surya:

pip install surya-ocr

Point the fast layout predictor at this checkpoint:

from PIL import Image
from surya.fast_layout import FastLayoutPredictor

predictor = FastLayoutPredictor(checkpoint="hf://datalab-to/surya_layout2")
layout = predictor([Image.open("page.png")])

for box in layout[0].bboxes:
    print(box.label, box.bbox, box.position)  # region label, [x0,y0,x1,y1], reading-order index

Or make it the default so the CLI and library use it without an explicit path:

export FAST_LAYOUT_MODEL_CHECKPOINT="hf://datalab-to/surya_layout2"

License

Released under the AI Pubs OpenRAIL-M license (see LICENSE) — the same license as the surya-ocr-2 model weights.

Identity and Version

Repository
datalab-to/surya_layout2
Publisher
Datalab
Task
Object detection
Modality
Image
Library
surya
Parameters
Not stated by the source
Languages
ocr
Revision
0aee81d5fd9275c0582e545bf3a56944b1e75679
First published
2026-07-08
Last updated
2026-07-08

Files and Weights

7 files, 142.0 MB in total. The weights are 2 files totalling 142.0 MB in pt, pth.

Weights2 files · 142.0 MB
Configuration2 files · 2.2 KB
Documentation2 files · 16.2 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
order/order_ar.ptWeights7.1 MB f381c3854801
rfdetr_layout.pthWeights134.9 MB e01b79f85877
config.jsonConfiguration1.8 KB
order/config.jsonConfiguration434 B
LICENSEDocumentation14.7 KB
README.mdDocumentation1.4 KB
.gitattributesRepository1.5 KB

License and Download

License
openrail
Access
Open weights, no gate
Download size
142.0 MB
Download from Datalab

Released by Datalab through its official repository on Hugging Face. Read the license.

Memory Requirements

PrecisionWeights in memory
As published142.0 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About surya_layout2

Can I use surya_layout2 commercially?

Yes, with conditions. surya_layout2 is released under Open RAIL License. Open RAIL licenses permit use, including commercial use, subject to the use-based restrictions listed in the license, which must be passed on to anyone who receives the model or a derivative.

Similar Models

Model · Object detection

locate-anything.cpp-gguf

Mudler

GGUF builds of nvidia/LocateAnything-3B for locate-anything.cpp - a C++/ggml inference engine for open-vocabulary detection / visual grounding, no Python at inference time. Brought to you by the LocalAI team. The detections are the same as the official PyTorch implementation (the engine is parity-gated against it), and it runs faster - on CPU and GPU. The full-precision f32 GGUF (~15 GB) is reproducible from the HF weights with scripts/convertlocateanythingtogguf.py in the repo. Same detections as the official model, faster. Full methodology, the warm/median setup, parity checks, and more images are in the repo's Slow-mode inference on the 448 fixture; vs official divides the official…

Open weights other gguf

Model · Object detection

Anzhcs_YOLOs

Anzhc

YOLOs in this repo are trained with datasets that i have annotated myself, or with the help of my friends(They will be appropriately mentioned in those cases). YOLOs on open datasets will have their own pages. Ultralytics 8.3.217 updates mask handling, which breaks function in main Adetailer repo. Install Ultralytics==8.3.216 or lower. Alternatively - use forks that fix this. - Fixed in main repo. I've added some features to make Adetailer more usable and less manual - https://github.com/Anzhc/aadetailer-reforge Im open to commissions, hit me up in Discord - anzhc P.S. All model names in tables have download links attached:3 Series of models aiming at detecting and segmenting face…

Open weights agpl-3.0 ultralytics

This is a fine-tuned version of YOLOv11 (n, s, m, l, x) specialized for License Plate Detection, using a public dataset from Roboflow Universe: The upstream Roboflow dataset (license-plate-recognition-rxg4e) contains train/test contamination — the same source images appear in both the training and test splits with only minor manual augmentation applied (see Discussion #2 for concrete examples). As a result: - The reported metrics below are likely overestimated, because the test set is not a true held-out evaluation. - Real-world generalization performance is expected to be lower than the numbers in the table. - Treat all evaluation figures with caution and validate the model on your own…

Open weights agpl-3.0 ultralytics

Model · Object detection

detr-resnet-50

Joshua

https://huggingface.co/facebook/detr-resnet-50 with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Test it out here, or create your own object-detection demo with 1 click! Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Open weights 1,024 tokens transformers.js

Model · Object detection

YOLO11

Ultralytics

Ultralytics creates cutting-edge, state-of-the-art (SOTA) YOLO models built on years of foundational research in computer vision and AI. Constantly updated for performance and flexibility, our models are fast, accurate, and easy to use. They excel at object detection, tracking, instance segmentation, semantic segmentation, image classification, and pose estimation tasks. Find detailed documentation in the Ultralytics Docs. Get support via GitHub Issues. Join discussions on Discord, Reddit, and the Ultralytics Community Forums! Request an Enterprise License for commercial use at Ultralytics Licensing. See below for quickstart installation and usage examples. For comprehensive guidance on…

Open weights agpl-3.0 ultralytics