mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Quantization] Improve the usage of fastdeploy tools (#722)
Improve the usage of fastdeploy tools
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user