|
@@ -1,11 +1,11 @@
|
|
|
-#### Install Git LFS
|
|
|
|
|
|
|
+### Install Git LFS
|
|
|
Before you begin, make sure Git Large File Storage (Git LFS) is installed on your system. Install it using the following command:
|
|
Before you begin, make sure Git Large File Storage (Git LFS) is installed on your system. Install it using the following command:
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
git lfs install
|
|
git lfs install
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-#### Download the Model from Hugging Face
|
|
|
|
|
|
|
+### Download the Model from Hugging Face
|
|
|
To download the `PDF-Extract-Kit` model from Hugging Face, use the following command:
|
|
To download the `PDF-Extract-Kit` model from Hugging Face, use the following command:
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
@@ -15,13 +15,37 @@ git lfs clone https://huggingface.co/wanderkid/PDF-Extract-Kit
|
|
|
Ensure that Git LFS is enabled during the clone to properly download all large files.
|
|
Ensure that Git LFS is enabled during the clone to properly download all large files.
|
|
|
|
|
|
|
|
|
|
|
|
|
-Move the 'models' directory to a directory on a larger disk space, preferably an SSD.
|
|
|
|
|
|
|
+
|
|
|
|
|
+### Download the Model from ModelScope
|
|
|
|
|
+
|
|
|
|
|
+#### SDK Download
|
|
|
|
|
+
|
|
|
|
|
+```bash
|
|
|
|
|
+# First, install the ModelScope library using pip:
|
|
|
|
|
+pip install modelscope
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+```python
|
|
|
|
|
+# Use the following Python code to download the model using the ModelScope SDK:
|
|
|
|
|
+from modelscope import snapshot_download
|
|
|
|
|
+model_dir = snapshot_download('wanderkid/PDF-Extract-Kit')
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+#### Git Download
|
|
|
|
|
+Alternatively, you can use Git to clone the model repository from ModelScope:
|
|
|
|
|
+
|
|
|
|
|
+```bash
|
|
|
|
|
+git clone https://www.modelscope.cn/wanderkid/PDF-Extract-Kit.git
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+Put [model files]() here:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
./
|
|
./
|
|
|
├── Layout
|
|
├── Layout
|
|
|
│ ├── config.json
|
|
│ ├── config.json
|
|
|
-│ └── model_final.pth
|
|
|
|
|
|
|
+│ └── weights.pth
|
|
|
├── MFD
|
|
├── MFD
|
|
|
│ └── weights.pt
|
|
│ └── weights.pt
|
|
|
├── MFR
|
|
├── MFR
|