Instructions to use xiaoyao9184/surya_text_detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xiaoyao9184/surya_text_detection with Transformers:
# Load model directly from transformers import EfficientViTForSemanticSegmentation model = EfficientViTForSemanticSegmentation.from_pretrained("xiaoyao9184/surya_text_detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add files using upload-large-folder tool
Browse files- README.md +2 -5
- config.json +5 -3
- manifest.json +1 -1
- model.safetensors +2 -2
- preprocessor_config.json +0 -16
- training_args.bin +2 -2
README.md
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: vikp/line_detector_3
|
| 3 |
-
model-index:
|
| 4 |
-
- name: line_detector_3
|
| 5 |
-
results: []
|
| 6 |
license: cc-by-nc-sa-4.0
|
| 7 |
---
|
|
|
|
| 8 |
|
| 9 |
-
Text detection model for [surya](https://
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: cc-by-nc-sa-4.0
|
| 3 |
---
|
| 4 |
+
# line_det1.3
|
| 5 |
|
| 6 |
+
Text line detection model for [surya](https://github.com/VikParuchuri/surya)
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"EfficientViTForSemanticSegmentation"
|
| 5 |
],
|
|
@@ -32,6 +32,7 @@
|
|
| 32 |
7,
|
| 33 |
7
|
| 34 |
],
|
|
|
|
| 35 |
"semantic_loss_ignore_index": -1,
|
| 36 |
"strides": [
|
| 37 |
2,
|
|
@@ -40,8 +41,9 @@
|
|
| 40 |
2,
|
| 41 |
2
|
| 42 |
],
|
| 43 |
-
"torch_dtype": "
|
| 44 |
-
"transformers_version": "4.
|
|
|
|
| 45 |
"widths": [
|
| 46 |
32,
|
| 47 |
64,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "datalab-to/line_det1.3",
|
| 3 |
"architectures": [
|
| 4 |
"EfficientViTForSemanticSegmentation"
|
| 5 |
],
|
|
|
|
| 32 |
7,
|
| 33 |
7
|
| 34 |
],
|
| 35 |
+
"pos_weight": 1.0,
|
| 36 |
"semantic_loss_ignore_index": -1,
|
| 37 |
"strides": [
|
| 38 |
2,
|
|
|
|
| 41 |
2,
|
| 42 |
2
|
| 43 |
],
|
| 44 |
+
"torch_dtype": "float16",
|
| 45 |
+
"transformers_version": "4.48.2",
|
| 46 |
+
"use_focal": false,
|
| 47 |
"widths": [
|
| 48 |
32,
|
| 49 |
64,
|
manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"files": ["model.safetensors", "
|
|
|
|
| 1 |
+
{"files": ["model.safetensors", "preprocessor_config.json", ".gitattributes", "README.md", "training_args.bin", "config.json"]}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d555099f4fa4590b9ffab7866d308c1c2853f436bf68ab6953e76decc12e788
|
| 3 |
+
size 76930732
|
preprocessor_config.json
CHANGED
|
@@ -1,20 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_valid_processor_keys": [
|
| 3 |
-
"images",
|
| 4 |
-
"segmentation_maps",
|
| 5 |
-
"do_resize",
|
| 6 |
-
"size",
|
| 7 |
-
"resample",
|
| 8 |
-
"do_rescale",
|
| 9 |
-
"rescale_factor",
|
| 10 |
-
"do_normalize",
|
| 11 |
-
"image_mean",
|
| 12 |
-
"image_std",
|
| 13 |
-
"do_reduce_labels",
|
| 14 |
-
"return_tensors",
|
| 15 |
-
"data_format",
|
| 16 |
-
"input_data_format"
|
| 17 |
-
],
|
| 18 |
"do_normalize": true,
|
| 19 |
"do_reduce_labels": true,
|
| 20 |
"do_rescale": true,
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"do_normalize": true,
|
| 3 |
"do_reduce_labels": true,
|
| 4 |
"do_rescale": true,
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dff1a98170621a2561c11cf0733fef2749afd29ac888738d886176905056f98c
|
| 3 |
+
size 5624
|