> If you getting this error `OSError: [WinError 126] The specified module could not be found` when you install shapely on windows. Please try to download Shapely whl file using http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely.
> If you getting this error `OSError: [WinError 126] The specified module could not be found` when you install shapely on windows. Please try to download Shapely whl file using http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely.
...
@@ -67,13 +70,18 @@ PPOCRLabel # run
...
@@ -67,13 +70,18 @@ PPOCRLabel # run
```bash
```bash
pip3 install PPOCRLabel
pip3 install PPOCRLabel
pip3 install trash-cli
pip3 install trash-cli
PPOCRLabel
# Select label mode and run
PPOCRLabel # [Normal mode] for [detection + recognition] labeling
[Paddle inference library official website](https://paddle-inference.readthedocs.io/en/latest/user_guides/download_lib.html). You can review and select the appropriate version of the inference library on the official website.
[Paddle inference library official website](https://paddleinference.paddlepaddle.org.cn/user_guides/download_lib.html#linux). You can review and select the appropriate version of the inference library on the official website.
* After downloading, use the following command to extract files.
* After downloading, use the following command to extract files.
...
@@ -231,7 +231,7 @@ More parameters are as follows,
...
@@ -231,7 +231,7 @@ More parameters are as follows,
|gpu_id|int|0|GPU id when use_gpu is true|
|gpu_id|int|0|GPU id when use_gpu is true|
|gpu_mem|int|4000|GPU memory requested|
|gpu_mem|int|4000|GPU memory requested|
|cpu_math_library_num_threads|int|10|Number of threads when using CPU inference. When machine cores is enough, the large the value, the faster the inference speed|
|cpu_math_library_num_threads|int|10|Number of threads when using CPU inference. When machine cores is enough, the large the value, the faster the inference speed|
|use_mkldnn|bool|true|Whether to use mkdlnn library|
|enable_mkldnn|bool|true|Whether to use mkdlnn library|
@@ -9,6 +9,7 @@ This section uses the icdar2015 dataset as an example to introduce the training,
...
@@ -9,6 +9,7 @@ This section uses the icdar2015 dataset as an example to introduce the training,
*[2.1 Start Training](#21-start-training)
*[2.1 Start Training](#21-start-training)
*[2.2 Load Trained Model and Continue Training](#22-load-trained-model-and-continue-training)
*[2.2 Load Trained Model and Continue Training](#22-load-trained-model-and-continue-training)
*[2.3 Training with New Backbone](#23-training-with-new-backbone)
*[2.3 Training with New Backbone](#23-training-with-new-backbone)
*[2.4 Training with knowledge distillation](#24)
-[3. Evaluation and Test](#3-evaluation-and-test)
-[3. Evaluation and Test](#3-evaluation-and-test)
*[3.1 Evaluation](#31-evaluation)
*[3.1 Evaluation](#31-evaluation)
*[3.2 Test](#32-test)
*[3.2 Test](#32-test)
...
@@ -174,6 +175,11 @@ After adding the four-part modules of the network, you only need to configure th
...
@@ -174,6 +175,11 @@ After adding the four-part modules of the network, you only need to configure th
**NOTE**: More details about replace Backbone and other mudule can be found in [doc](add_new_algorithm_en.md).
**NOTE**: More details about replace Backbone and other mudule can be found in [doc](add_new_algorithm_en.md).
### 2.4 Training with knowledge distillation
Knowledge distillation is supported in PaddleOCR for text detection training process. For more details, please refer to [doc](./knowledge_distillation_en.md).
Knowledge distillation is supported in PaddleOCR for text recognition training process. For more details, please refer to [doc](./knowledge_distillation_en.md).