vikp commited on
Commit
ec487b4
·
verified ·
1 Parent(s): b3e5bd9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -28
README.md CHANGED
@@ -9,7 +9,6 @@ tags:
9
  - layout
10
  ---
11
 
12
-
13
  <h1 align="center">Datalab</h1>
14
  <p align="center">
15
  <strong>State of the Art models for Document Intelligence</strong>
@@ -49,19 +48,17 @@ Commercial self-hosting of the model weights requires a license — see [Commerc
49
 
50
  | Detection | OCR |
51
  |:----------------------------------------------------------------:|:-----------------------------------------------------------------------:|
52
- | <img src="assets/excerpt.png" width="280"/> | <img src="assets/excerpt_text.png" width="280"/> |
53
 
54
  | Layout | Table Recognition |
55
  |:------------------------------------------------------------------:|:-------------------------------------------------------------:|
56
- | <img src="assets/excerpt_layout.png" width="280"/> | <img src="assets/scanned_tablerec.png" width="280"/> |
57
 
58
 
59
  Surya is named for the [Hindu sun god](https://en.wikipedia.org/wiki/Surya), who has universal vision.
60
 
61
  ## Examples
62
 
63
- Each row links to five annotated views of the same page: text-line detection, OCR, layout, reading order, and (when present) table recognition.
64
-
65
  | Name | Detection | OCR | Layout | Order | Table Rec |
66
  |-------------------|:-----------------------------------:|------------------------------------------:|---------------------------------------------:|------------------------------------------------:|------------------------------------------------:|
67
  | Newspaper | [Image](assets/newspaper.png) | [Image](assets/newspaper_text.png) | [Image](assets/newspaper_layout.png) | [Image](assets/newspaper_reading.png) | |
@@ -70,10 +67,6 @@ Each row links to five annotated views of the same page: text-line detection, OC
70
  | Handwritten Notes | [Image](assets/handwritten.png) | [Image](assets/handwritten_text.png) | [Image](assets/handwritten_layout.png) | [Image](assets/handwritten_reading.png) | [Image](assets/handwritten_tablerec.png) |
71
  | Corporate Doc | [Image](assets/corporate.png) | [Image](assets/corporate_text.png) | [Image](assets/corporate_layout.png) | [Image](assets/corporate_reading.png) | [Image](assets/corporate_tablerec.png) |
72
 
73
- # Commercial usage
74
-
75
- The Surya code is licensed under Apache 2.0. The model weights use a modified AI Pubs Open Rail-M license (free for research, personal use, and startups under $5M funding/revenue). For broader commercial licensing of the model weights, visit our pricing page [here](https://www.datalab.to/pricing?utm_source=gh-surya).
76
-
77
  # Installation
78
 
79
  Install with:
@@ -82,24 +75,6 @@ Install with:
82
  pip install surya-ocr
83
  ```
84
 
85
- ## Upgrading from Surya v1
86
-
87
- If you have v1 code, you can migrate to this:
88
-
89
- ```python
90
- # v2
91
- from surya.inference import SuryaInferenceManager
92
- from surya.recognition import RecognitionPredictor
93
-
94
- manager = SuryaInferenceManager() # auto-spawns vllm or llama-server
95
- rec = RecognitionPredictor(manager)
96
- predictions = rec([image])
97
- ```
98
-
99
- What's different:
100
- - `SuryaInferenceManager` replaces `FoundationPredictor`. Same manager instance is shared across `LayoutPredictor`, `RecognitionPredictor`, `TableRecPredictor`.
101
- - Output schemas changed: see the per-section JSON tables below. Highlights — `text_lines` → `blocks` (with `html`); layout dropped `top_k`, added `count`; table_rec dropped `is_header` / `colspan` / `rowspan` from cells.
102
-
103
  # Usage
104
 
105
  Surya 2 runs layout, OCR, and table recognition through a single VLM served
@@ -360,7 +335,7 @@ standard quality benchmark for document parsers.
360
 
361
  ## olmOCR-bench
362
 
363
- Pareto-optimal on the size-vs-score frontier, and best in class under 3B params.
364
 
365
  | Model | Params | Score |
366
  |-----------------------------|----------:|---------:|
 
9
  - layout
10
  ---
11
 
 
12
  <h1 align="center">Datalab</h1>
13
  <p align="center">
14
  <strong>State of the Art models for Document Intelligence</strong>
 
48
 
49
  | Detection | OCR |
50
  |:----------------------------------------------------------------:|:-----------------------------------------------------------------------:|
51
+ | <img src="assets/excerpt.png" width="140"/> | <img src="assets/excerpt_text.png" width="140"/> |
52
 
53
  | Layout | Table Recognition |
54
  |:------------------------------------------------------------------:|:-------------------------------------------------------------:|
55
+ | <img src="assets/excerpt_layout.png" width="140"/> | <img src="assets/scanned_tablerec.png" width="140"/> |
56
 
57
 
58
  Surya is named for the [Hindu sun god](https://en.wikipedia.org/wiki/Surya), who has universal vision.
59
 
60
  ## Examples
61
 
 
 
62
  | Name | Detection | OCR | Layout | Order | Table Rec |
63
  |-------------------|:-----------------------------------:|------------------------------------------:|---------------------------------------------:|------------------------------------------------:|------------------------------------------------:|
64
  | Newspaper | [Image](assets/newspaper.png) | [Image](assets/newspaper_text.png) | [Image](assets/newspaper_layout.png) | [Image](assets/newspaper_reading.png) | |
 
67
  | Handwritten Notes | [Image](assets/handwritten.png) | [Image](assets/handwritten_text.png) | [Image](assets/handwritten_layout.png) | [Image](assets/handwritten_reading.png) | [Image](assets/handwritten_tablerec.png) |
68
  | Corporate Doc | [Image](assets/corporate.png) | [Image](assets/corporate_text.png) | [Image](assets/corporate_layout.png) | [Image](assets/corporate_reading.png) | [Image](assets/corporate_tablerec.png) |
69
 
 
 
 
 
70
  # Installation
71
 
72
  Install with:
 
75
  pip install surya-ocr
76
  ```
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  # Usage
79
 
80
  Surya 2 runs layout, OCR, and table recognition through a single VLM served
 
335
 
336
  ## olmOCR-bench
337
 
338
+ Pareto-optimal, and best in class under 3B params.
339
 
340
  | Model | Params | Score |
341
  |-----------------------------|----------:|---------:|