@@ -25,7 +25,7 @@ After training, if you want to further compress the model size and accelerate th
...
@@ -25,7 +25,7 @@ After training, if you want to further compress the model size and accelerate th
### 1. Install PaddleSlim
### 1. Install PaddleSlim
```bash
```bash
pip3 install paddleslim==2.2.2
pip3 install paddleslim==2.3.2
```
```
...
@@ -39,18 +39,7 @@ Quantization training includes offline quantization training and online quantiza
...
@@ -39,18 +39,7 @@ Quantization training includes offline quantization training and online quantiza
Online quantization training is more effective. It is necessary to load the pre-trained model.
Online quantization training is more effective. It is necessary to load the pre-trained model.
After the quantization strategy is defined, the model can be quantified.
After the quantization strategy is defined, the model can be quantified.
The code for quantization training is located in `slim/quantization/quant.py`. For example, to train a detection model, the training instructions are as follows:
The code for quantization training is located in `slim/quantization/quant.py`. For example, the training instructions of slim PPOCRv3 detection model are as follows: