From 365971e59d176408ed84bedb7126eb87a38b78ba Mon Sep 17 00:00:00 2001 From: Liufang Sang Date: Thu, 17 Oct 2019 11:52:26 +0800 Subject: [PATCH] skip max pool2d in resnet34 test=release/1.6 (#3618) --- .../PaddleDetection/slim/distillation/README.md | 2 ++ PaddleCV/PaddleDetection/slim/prune/README.md | 2 ++ .../PaddleDetection/slim/quantization/README.md | 2 ++ PaddleSlim/classification/distillation/README.md | 2 ++ PaddleSlim/classification/models/resnet.py | 13 +++++++------ PaddleSlim/classification/pruning/README.md | 2 ++ PaddleSlim/classification/quantization/README.md | 2 ++ 7 files changed, 19 insertions(+), 6 deletions(-) diff --git a/PaddleCV/PaddleDetection/slim/distillation/README.md b/PaddleCV/PaddleDetection/slim/distillation/README.md index af1962e4..e970cc42 100755 --- a/PaddleCV/PaddleDetection/slim/distillation/README.md +++ b/PaddleCV/PaddleDetection/slim/distillation/README.md @@ -128,6 +128,8 @@ python ../infer.py \ ## 示例结果 +>当前release的结果并非超参调优后的最好结果,仅做示例参考,后续我们会优化当前结果。 + ### MobileNetV1-YOLO-V3 | FLOPS |Box AP| diff --git a/PaddleCV/PaddleDetection/slim/prune/README.md b/PaddleCV/PaddleDetection/slim/prune/README.md index 80a572f2..b06fdd2b 100644 --- a/PaddleCV/PaddleDetection/slim/prune/README.md +++ b/PaddleCV/PaddleDetection/slim/prune/README.md @@ -209,6 +209,8 @@ python ../infer.py \ ## 示例结果 +> 当前release的结果并非超参调优后的最好结果,仅做示例参考,后续我们会优化当前结果。 + ### MobileNetV1-YOLO-V3 | FLOPS |Box AP| model_size |Paddle Fluid inference time(ms)| Paddle Lite inference time(ms)| diff --git a/PaddleCV/PaddleDetection/slim/quantization/README.md b/PaddleCV/PaddleDetection/slim/quantization/README.md index 20d33071..86ef5a5a 100644 --- a/PaddleCV/PaddleDetection/slim/quantization/README.md +++ b/PaddleCV/PaddleDetection/slim/quantization/README.md @@ -224,6 +224,8 @@ FP32模型可使用PaddleLite进行加载预测,可参见教程[Paddle-Lite如 ## 示例结果 +>当前release的结果并非超参调优后的最好结果,仅做示例参考,后续我们会优化当前结果。 + ### MobileNetV1 | weight量化方式 | activation量化方式| Box ap |Paddle Fluid inference time(ms)| Paddle Lite inference time(ms)| diff --git a/PaddleSlim/classification/distillation/README.md b/PaddleSlim/classification/distillation/README.md index b9104973..9f079050 100755 --- a/PaddleSlim/classification/distillation/README.md +++ b/PaddleSlim/classification/distillation/README.md @@ -151,6 +151,8 @@ python infer.py \ ## 示例结果 +> 当前release的结果并非超参调优后的最好结果,仅做示例参考,后续我们会优化当前结果。 + ### MobileNetV1 | FLOPS | top1_acc/top5_acc | diff --git a/PaddleSlim/classification/models/resnet.py b/PaddleSlim/classification/models/resnet.py index df13bf25..09e83675 100644 --- a/PaddleSlim/classification/models/resnet.py +++ b/PaddleSlim/classification/models/resnet.py @@ -51,12 +51,13 @@ class ResNet(): stride=2, act='relu', name=prefix_name + conv1_name) - conv = fluid.layers.pool2d( - input=conv, - pool_size=3, - pool_stride=2, - pool_padding=1, - pool_type='max') + with fluid.name_scope("skip_quant"): + conv = fluid.layers.pool2d( + input=conv, + pool_size=3, + pool_stride=2, + pool_padding=1, + pool_type='max') if layers >= 50: for block in range(len(depth)): diff --git a/PaddleSlim/classification/pruning/README.md b/PaddleSlim/classification/pruning/README.md index 05480ded..185903b1 100644 --- a/PaddleSlim/classification/pruning/README.md +++ b/PaddleSlim/classification/pruning/README.md @@ -140,6 +140,8 @@ python infer.py \ ## 示例结果 +>当前release的结果并非超参调优后的最好结果,仅做示例参考,后续我们会优化当前结果。 + ### MobileNetV1 | FLOPS |top1_acc/top5_acc| model_size |Paddle Fluid inference time(ms)| Paddle Lite inference time(ms)| diff --git a/PaddleSlim/classification/quantization/README.md b/PaddleSlim/classification/quantization/README.md index c04aeeea..7119fef3 100644 --- a/PaddleSlim/classification/quantization/README.md +++ b/PaddleSlim/classification/quantization/README.md @@ -162,6 +162,8 @@ FP32模型可使用Paddle-Lite进行加载预测,可参见教程[Paddle-Lite ## 示例结果 +>当前release的结果并非超参调优后的最好结果,仅做示例参考,后续我们会优化当前结果。 + ### MobileNetV1 | weight量化方式 | activation量化方式| top1_acc/top5_acc |Paddle Fluid inference time(ms)| Paddle Lite inference time(ms)| 模型下载| -- GitLab