After the Python script finishes executing, it will output the directory where the models are downloaded.
Ensure that Git LFS is enabled during the clone to properly download all large files.
### 2. Additional steps
### 3. Additional steps
#### 1. Check whether the model directory is downloaded completely.
#### 1. Check whether the model directory is downloaded completely.
...
@@ -65,6 +57,7 @@ The structure of the model folder is as follows, including configuration files a
...
@@ -65,6 +57,7 @@ The structure of the model folder is as follows, including configuration files a
Please check whether the size of the model file in the directory is consistent with the description on the web page. If possible, it is best to check whether the model is downloaded completely through sha256.
Please check whether the size of the model file in the directory is consistent with the description on the web page. If possible, it is best to check whether the model is downloaded completely through sha256.
#### 3. Move the model to the solid-state drive
#### 3.
Additionally, in `~/magic-pdf.json`, update the model directory path to the absolute path of the `models` directory output by the previous Python script. Otherwise, you will encounter an error indicating that the model cannot be loaded.
Move the 'models' directory to a directory with large disk space, preferably on a solid-state drive (SSD). In addition, modify the model directory in `~/magic-pdf.json` to point to the final model storage location, otherwise the model cannot be loaded.