From 0606bb2ff3f6bafaa1e1a051c03ee1778404bcc1 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Sun, 12 Jul 2020 07:30:26 +0000 Subject: [PATCH] modify paddlelite docs --- docs/deploy/paddlelite/slim/prune.md | 6 +++--- tutorials/compress/README.md | 4 ++-- tutorials/compress/classification/README.md | 3 +++ tutorials/compress/detection/README.md | 3 +++ tutorials/compress/segmentation/README.md | 3 +++ 5 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 tutorials/compress/classification/README.md create mode 100644 tutorials/compress/detection/README.md create mode 100644 tutorials/compress/segmentation/README.md diff --git a/docs/deploy/paddlelite/slim/prune.md b/docs/deploy/paddlelite/slim/prune.md index 17d3c90..f734308 100644 --- a/docs/deploy/paddlelite/slim/prune.md +++ b/docs/deploy/paddlelite/slim/prune.md @@ -28,7 +28,7 @@ PaddleX提供了两种方式: 基于上述两种方案,我们在PaddleX上使用样例数据进行了实验,在Tesla P40上实验指标如下所示: ### 图像分类 -实验背景:使用MobileNetV2模型,数据集为蔬菜分类示例数据,使用方法见[使用教程-模型压缩-图像分类](./tutorials/classification.html) +实验背景:使用MobileNetV2模型,数据集为蔬菜分类示例数据,裁剪训练代码见[tutorials/compress/classification](https://github.com/PaddlePaddle/PaddleX/tree/develop/tutorials/compress/classification) | 模型 | 裁剪情况 | 模型大小 | Top1准确率(%) |GPU预测速度 | CPU预测速度 | | :-----| :--------| :-------- | :---------- |:---------- |:----------| @@ -37,7 +37,7 @@ PaddleX提供了两种方式: |MobileNetV2 | 方案二(eval_metric_loss=0.10) | 6.0M | 99.58 |5.42ms |29.06ms | ### 目标检测 -实验背景:使用YOLOv3-MobileNetV1模型,数据集为昆虫检测示例数据,使用方法见[使用教程-模型压缩-目标检测](./tutorials/detection.html) +实验背景:使用YOLOv3-MobileNetV1模型,数据集为昆虫检测示例数据,裁剪训练代码见[tutorials/compress/detection](https://github.com/PaddlePaddle/PaddleX/tree/develop/tutorials/compress/detection) | 模型 | 裁剪情况 | 模型大小 | MAP(%) |GPU预测速度 | CPU预测速度 | | :-----| :--------| :-------- | :---------- |:---------- | :---------| @@ -46,7 +46,7 @@ PaddleX提供了两种方式: |YOLOv3-MobileNetV1 | 方案二(eval_metric_loss=0.05) | 29M | 50.27| 9.43ms |360.46ms | ### 语义分割 -实验背景:使用UNet模型,数据集为视盘分割示例数据,使用方法见[使用教程-模型压缩-语义分割](./tutorials/segmentation.html) +实验背景:使用UNet模型,数据集为视盘分割示例数据,裁剪训练代码见[tutorials/compress/segmentation](https://github.com/PaddlePaddle/PaddleX/tree/develop/tutorials/compress/segmentation) | 模型 | 裁剪情况 | 模型大小 | mIOU(%) |GPU预测速度 | CPU预测速度 | | :-----| :--------| :-------- | :---------- |:---------- | :---------| diff --git a/tutorials/compress/README.md b/tutorials/compress/README.md index 5bfcbd4..e85b448 100644 --- a/tutorials/compress/README.md +++ b/tutorials/compress/README.md @@ -22,9 +22,9 @@ PaddleX提供了两种裁剪训练方式, # 训练模型 python classification/mobilenetv2.py # 计算模型参数敏感度 -python classification/cal_sensitivities_file.py --model_dir=output/mobilenetv2/epoch_10 --save_file=./sensitivities.data +python classification/cal_sensitivities_file.py --model_dir=output/mobilenetv2/best_model --save_file=./sensitivities.data # 裁剪训练 -python classification/mobilenetv2.py --model_dir=output/mobilenetv2/epoch_10 --sensitivities_file=./sensitivities.data --eval_metric_loss=0.05 +python classification/mobilenetv2.py --model_dir=output/mobilenetv2/best_model --sensitivities_file=./sensitivities.data --eval_metric_loss=0.05 ``` 2. 第2种方法,使用PaddleX预先计算好的参数敏感度文件 ``` diff --git a/tutorials/compress/classification/README.md b/tutorials/compress/classification/README.md new file mode 100644 index 0000000..e711c19 --- /dev/null +++ b/tutorials/compress/classification/README.md @@ -0,0 +1,3 @@ +# 说明 + +使用方式见[文档](../README.md) diff --git a/tutorials/compress/detection/README.md b/tutorials/compress/detection/README.md new file mode 100644 index 0000000..e711c19 --- /dev/null +++ b/tutorials/compress/detection/README.md @@ -0,0 +1,3 @@ +# 说明 + +使用方式见[文档](../README.md) diff --git a/tutorials/compress/segmentation/README.md b/tutorials/compress/segmentation/README.md new file mode 100644 index 0000000..e711c19 --- /dev/null +++ b/tutorials/compress/segmentation/README.md @@ -0,0 +1,3 @@ +# 说明 + +使用方式见[文档](../README.md) -- GitLab