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
|
||||
# 通过pip安装fastdeploy-tools. 此工具包目前支持模型一键自动化压缩和模型转换的功能.
|
||||
# FastDeploy的python包已包含此工具, 不需重复安装.
|
||||
pip install fastdeploy-tools==0.0.0
|
||||
pip install fastdeploy-tools==0.0.1
|
||||
```
|
||||
|
||||
### 一键模型自动化压缩工具的使用
|
||||
按照以上步骤成功安装后,即可使用FastDeploy一键模型自动化压缩工具, 示例如下.
|
||||
|
||||
```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/'
|
||||
```
|
||||
详细使用文档请参考[FastDeploy一键模型自动化压缩工具](./common_tools/auto_compression/README.md)
|
||||
|
||||
@@ -69,7 +69,7 @@ python setup.py install
|
||||
按照以上步骤成功安装后,即可使用 FastDeploy 一键转换工具, 示例如下:
|
||||
|
||||
```bash
|
||||
fastdeploy --convert --framework onnx --model yolov5s.onnx --save_dir pd_model
|
||||
fastdeploy convert --framework onnx --model yolov5s.onnx --save_dir pd_model
|
||||
```
|
||||
|
||||
更多详细内容可参考[X2Paddle](https://github.com/PaddlePaddle/X2Paddle)
|
||||
|
||||
Reference in New Issue
Block a user