xaitalk commited on
Commit
6ffde6b
Β·
verified Β·
1 Parent(s): 045db66

Document legacy DocAligner weights + attribution

Browse files
Files changed (1) hide show
  1. README.md +30 -1
README.md CHANGED
@@ -22,6 +22,12 @@ These weights power the default detection cascade:
22
  2. **HQ-SAM ViT-B**, prompted by that bbox, returns a precise binary mask.
23
  3. The mask is fitted to a 4-corner quadrilateral for perspective correction.
24
 
 
 
 
 
 
 
25
  ## Files
26
 
27
  | File | Size | Description |
@@ -29,6 +35,9 @@ These weights power the default detection cascade:
29
  | `yolo_doc_v1.onnx` | 11 MB | Exported YOLO11 detector β€” used at inference time by `pagescan.detector` (no torch required). |
30
  | `yolo_doc_v1.pt` | 5.3 MB | Original PyTorch checkpoint β€” kept for re-export / fine-tuning. |
31
  | `sam_hq_vit_b.pth` | 362 MB | HQ-SAM ViT-B checkpoint β€” re-hosted copy (see attribution below). |
 
 
 
32
 
33
  ## Usage
34
 
@@ -78,9 +87,29 @@ HQ-SAM is released under the **Apache 2.0** license. We re-host the ViT-B checkp
78
  }
79
  ```
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  ## License
82
 
83
  - `yolo_doc_v1.{pt,onnx}` β€” released under Apache 2.0 by 7R+ GmbH.
84
- - `sam_hq_vit_b.pth` β€” Apache 2.0, original authors (see above).
 
 
85
 
86
  The pagescan package itself is MIT-licensed; see the [main repository](https://github.com/7RPlus-GmbH/pagescan).
 
22
  2. **HQ-SAM ViT-B**, prompted by that bbox, returns a precise binary mask.
23
  3. The mask is fitted to a 4-corner quadrilateral for perspective correction.
24
 
25
+ A **legacy fallback chain** is also bundled, used when the cascade is unavailable
26
+ (e.g. no torch) or fails on a given image: DocAligner's FastViT-SA24 and LCNet100
27
+ corner-heatmap regressors, plus a DeepLabV3-MobileNetV3 document-segmentation net
28
+ for the conservative-crop path. These are re-hosted third-party weights β€” see
29
+ attribution below.
30
+
31
  ## Files
32
 
33
  | File | Size | Description |
 
35
  | `yolo_doc_v1.onnx` | 11 MB | Exported YOLO11 detector β€” used at inference time by `pagescan.detector` (no torch required). |
36
  | `yolo_doc_v1.pt` | 5.3 MB | Original PyTorch checkpoint β€” kept for re-export / fine-tuning. |
37
  | `sam_hq_vit_b.pth` | 362 MB | HQ-SAM ViT-B checkpoint β€” re-hosted copy (see attribution below). |
38
+ | `fastvit_sa24_h_e_bifpn_256_fp32.onnx` | 83 MB | DocAligner FastViT-SA24 corner-heatmap regressor β€” legacy primary (re-hosted; see attribution). |
39
+ | `lcnet100_h_e_bifpn_256_fp32.onnx` | 4.8 MB | DocAligner LCNet100 corner-heatmap regressor β€” legacy fallback backbone (re-hosted; see attribution). |
40
+ | `deeplabv3_mbv3_docseg.onnx` | 44 MB | DeepLabV3-MobileNetV3 document segmentation β€” conservative-crop fallback (re-hosted; see attribution). |
41
 
42
  ## Usage
43
 
 
87
  }
88
  ```
89
 
90
+ ## Attribution β€” DocAligner (legacy weights)
91
+
92
+ `fastvit_sa24_h_e_bifpn_256_fp32.onnx` and `lcnet100_h_e_bifpn_256_fp32.onnx` are
93
+ **not original work from this repository**. They are re-hosted copies of the
94
+ corner-detection ONNX weights from the **DocAligner** project by DocsaidLab,
95
+ included so pagescan's legacy fallback path has a single, stable weight source
96
+ (the DocAligner upstream is an undocumented auto-downloader).
97
+
98
+ > **DocAligner** β€” DocsaidLab
99
+ > Code & docs: <https://github.com/DocsaidLab/DocAligner> Β· <https://docsaid.org/en/docs/docaligner/>
100
+
101
+ DocAligner is released under the **Apache 2.0** license. We re-host these
102
+ checkpoints unchanged; all credit for the models belongs to DocsaidLab.
103
+
104
+ `deeplabv3_mbv3_docseg.onnx` is a re-hosted DeepLabV3-MobileNetV3 document-segmentation
105
+ model used only by the conservative-crop fallback. Its upstream provenance is not
106
+ definitively traced; if you redistribute it, confirm its original source and license.
107
+
108
  ## License
109
 
110
  - `yolo_doc_v1.{pt,onnx}` β€” released under Apache 2.0 by 7R+ GmbH.
111
+ - `sam_hq_vit_b.pth` β€” Apache 2.0, HQ-SAM authors (see above).
112
+ - `fastvit_sa24_*.onnx`, `lcnet100_*.onnx` β€” Apache 2.0, DocAligner / DocsaidLab (see above).
113
+ - `deeplabv3_mbv3_docseg.onnx` β€” re-hosted; provenance/license to be confirmed.
114
 
115
  The pagescan package itself is MIT-licensed; see the [main repository](https://github.com/7RPlus-GmbH/pagescan).