[Quantization] Improve the usage of fastdeploy tools (#722)

Improve the usage of fastdeploy tools
This commit is contained in:
yunyaoXYY
2022-11-28 16:55:32 +08:00
committed by GitHub
parent 9ae5c24607
commit ae3487560d
10 changed files with 24 additions and 30 deletions

View File

@@ -26,14 +26,14 @@ python setup.py install
```bash
# Installing fastdeploy-tools via pip
# This tool is included in the python installer of FastDeploy, so you don't need to install it again.
pip install fastdeploy-tools==0.0.0
pip install fastdeploy-tools==0.0.1
```
### The Usage of One-Click Model Auto Compression Tool
After the above steps are successfully installed, you can use FastDeploy one-click model automation compression tool, as shown in the following example.
```bash
fastdeploy --auto_compress --config_path=./configs/detection/yolov5s_quant.yaml --method='PTQ' --save_dir='./yolov5s_ptq_model/'
fastdeploy compress --config_path=./configs/detection/yolov5s_quant.yaml --method='PTQ' --save_dir='./yolov5s_ptq_model/'
```
For detailed documentation, please refer to [FastDeploy One-Click Model Auto Compression Tool](./common_tools/auto_compression/README_EN.md)
@@ -69,7 +69,7 @@ python setup.py install
After successful installation according to the above steps, you can use the FastDeploy one-click conversion tool. The example is as follows:
```bash
fastdeploy --convert --framework onnx --model yolov5s.onnx --save_dir pd_model
fastdeploy convert --framework onnx --model yolov5s.onnx --save_dir pd_model
```
For more details, please refer to[X2Paddle](https://github.com/PaddlePaddle/X2Paddle)