Update README.md
Browse files
README.md
CHANGED
|
@@ -13,7 +13,25 @@ pipeline_tag: image-to-text
|
|
| 13 |
|
| 14 |
It addresses structural variability and semantic entanglement by using a hierarchical supervision training strategy and a semantic-decoupled tokenizer. Despite its small size, it achieves performance comparable to or better than much larger vision-language models.
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
### Dependencies:
|
| 19 |
|
|
|
|
| 13 |
|
| 14 |
It addresses structural variability and semantic entanglement by using a hierarchical supervision training strategy and a semantic-decoupled tokenizer. Despite its small size, it achieves performance comparable to or better than much larger vision-language models.
|
| 15 |
|
| 16 |
+
|
| 17 |
+
## Get Started with ONNX
|
| 18 |
+
|
| 19 |
+
### Install OpenOCR and Dependencies:
|
| 20 |
+
|
| 21 |
+
```shell
|
| 22 |
+
git clone https://github.com/Topdu/OpenOCR.git
|
| 23 |
+
pip install onnxruntime
|
| 24 |
+
cd OpenOCR
|
| 25 |
+
huggingface-cli download topdu/unirec_0_1b_onnx --local-dir ./unirec_0_1b_onnx
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
### Inference
|
| 29 |
+
|
| 30 |
+
```shell
|
| 31 |
+
python ./tools/depolyment/unirec_onnx/infer_onnx.py --image /path/to/image
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Get Started with Pytorch
|
| 35 |
|
| 36 |
### Dependencies:
|
| 37 |
|