update readme
Browse files
README.md
CHANGED
|
@@ -1,3 +1,70 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Install Git LFS
|
| 2 |
+
Before you begin, make sure Git Large File Storage (Git LFS) is installed on your system. Install it using the following command:
|
| 3 |
+
|
| 4 |
+
```bash
|
| 5 |
+
git lfs install
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
### Download the Model from Hugging Face
|
| 9 |
+
To download the `PDF-Extract-Kit` model from Hugging Face, use the following command:
|
| 10 |
+
|
| 11 |
+
```bash
|
| 12 |
+
git lfs clone https://huggingface.co/wanderkid/PDF-Extract-Kit
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
Ensure that Git LFS is enabled during the clone to properly download all large files.
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
### Download the Model from ModelScope
|
| 20 |
+
|
| 21 |
+
#### SDK Download
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
# First, install the ModelScope library using pip:
|
| 25 |
+
pip install modelscope
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
# Use the following Python code to download the model using the ModelScope SDK:
|
| 30 |
+
from modelscope import snapshot_download
|
| 31 |
+
model_dir = snapshot_download('wanderkid/PDF-Extract-Kit')
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
#### Git Download
|
| 35 |
+
Alternatively, you can use Git to clone the model repository from ModelScope:
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
git clone https://www.modelscope.cn/wanderkid/PDF-Extract-Kit.git
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
Put [model files]() here:
|
| 43 |
+
|
| 44 |
+
```
|
| 45 |
+
./
|
| 46 |
+
βββ Layout
|
| 47 |
+
β βββ config.json
|
| 48 |
+
β βββ model_final.pth
|
| 49 |
+
βββ MFD
|
| 50 |
+
β βββ weights.pt
|
| 51 |
+
βββ MFR
|
| 52 |
+
β βββ UniMERNet
|
| 53 |
+
β βββ config.json
|
| 54 |
+
β βββ preprocessor_config.json
|
| 55 |
+
β βββ pytorch_model.bin
|
| 56 |
+
β βββ README.md
|
| 57 |
+
β βββ tokenizer_config.json
|
| 58 |
+
β βββ tokenizer.json
|
| 59 |
+
βββ TabRec
|
| 60 |
+
β βββ StructEqTable
|
| 61 |
+
β βββ config.json
|
| 62 |
+
β βββgeneration_config.json
|
| 63 |
+
β βββmodel.safetensors
|
| 64 |
+
β βββpreprocessor_config.json
|
| 65 |
+
β βββspecial_tokens_map.json
|
| 66 |
+
β βββspiece.model
|
| 67 |
+
β βββtokenizer_config.json
|
| 68 |
+
β βββtokenizer.json
|
| 69 |
+
βββ README.md
|
| 70 |
+
```
|