datalab-to / surya_layout2

huggingface.co
Total runs: 21.2K
24-hour runs: 0
7-day runs: 137
30-day runs: 6.0K
Model's Last Updated: July 09 2026
object-detection

Introduction of surya_layout2

Model Details of surya_layout2

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.

Runs of datalab-to surya_layout2 on huggingface.co

21.2K
Total runs
0
24-hour runs
-170
3-day runs
137
7-day runs
6.0K
30-day runs

More Information About surya_layout2 huggingface.co Model

More surya_layout2 license Visit here:

https://choosealicense.com/licenses/openrail

surya_layout2 huggingface.co

surya_layout2 huggingface.co is an AI model on huggingface.co that provides surya_layout2's model effect (), which can be used instantly with this datalab-to surya_layout2 model. huggingface.co supports a free trial of the surya_layout2 model, and also provides paid use of the surya_layout2. Support call surya_layout2 model through api, including Node.js, Python, http.

datalab-to surya_layout2 online free

surya_layout2 huggingface.co is an online trial and call api platform, which integrates surya_layout2's modeling effects, including api services, and provides a free online trial of surya_layout2, you can try surya_layout2 online for free by clicking the link below.

datalab-to surya_layout2 online free url in huggingface.co:

https://huggingface.co/datalab-to/surya_layout2

surya_layout2 install

surya_layout2 is an open source model from GitHub that offers a free installation service, and any user can find surya_layout2 on GitHub to install. At the same time, huggingface.co provides the effect of surya_layout2 install, users can directly use surya_layout2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

surya_layout2 install url in huggingface.co:

https://huggingface.co/datalab-to/surya_layout2

Url of surya_layout2

surya_layout2 huggingface.co Url

Provider of surya_layout2 huggingface.co

datalab-to
ORGANIZATIONS

Other API from datalab-to

huggingface.co

Total runs: 160.7K
Run Growth: 33.0K
Growth Rate: 20.52%
Updated:June 19 2026
huggingface.co

Total runs: 113.5K
Run Growth: -14.6K
Growth Rate: -12.89%
Updated:March 26 2026
huggingface.co

Total runs: 2.2K
Run Growth: 292
Growth Rate: 13.14%
Updated:January 29 2025