登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
Gitee AI
NEW
我知道了
查看详情
登录
注册
12月28日,「开源中国源创会年终盛典」珠海站再次回归!点击免费报名参会
代码拉取完成,页面将自动刷新
开源项目
>
人工智能
>
AI-人工智能
&
计算机视觉/人脸识别
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
69
Star
725
Fork
272
PaddlePaddle
/
PaddleDetection
代码
Issues
47
Pull Requests
4
Wiki
统计
流水线
服务
Gitee Pages
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
我知道了,不再自动展开
更新失败,请稍后重试!
Issues
/
详情
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
导出的 centernet 模型的预测结果错误
待办的
#I4RH2F
Duan Yao
创建于
2022-01-19 17:03
操作步骤: 1. 先验证官方模型的预测结果: ``` python tools/infer.py -c configs/centernet/centernet_dla34_140e_coco.yml -o use_gpu=false weights=https://bj.bcebos.com/v1/paddledet/models/centernet_dla34_140e_coco.pdparams --infer_img=demo/000000570688.jpg ``` 结果正确。 2. 导出官方模型: ``` python tools/export_model.py -c configs/centernet/centernet_dla34_140e_coco.yml --output_dir=./inference_model -o use_gpu=false weights=https://bj.bcebos.com/v1/paddledet/models/centernet_dla34_140e_coco.pdparams ``` 3. 用导出的模型来预测同一个图片: ``` python deploy/python/infer.py --model_dir inference_model/centernet_dla34_140e_coco/ --device CPU --output_dir infer_output/centernet_dla34_140e_coco/ --image_file demo/000000570688.jpg ``` 结果错误,表现为预测框错位。 错误的预测结果图片如下: ![输入图片说明](https://images.gitee.com/uploads/images/2022/0119/165915_eb1fe9b5_77714.jpeg "000000570688.jpg") 预测时的控制台输出为: ``` ----------- Running Arguments ----------- batch_size: 1 camera_id: -1 cpu_threads: 1 device: CPU enable_mkldnn: False image_dir: None image_file: demo/000000570688.jpg model_dir: inference_model/centernet_dla34_140e_coco/ output_dir: infer_output/centernet_dla34_140e_coco/ reid_batch_size: 50 reid_model_dir: None run_benchmark: False run_mode: paddle save_images: False save_mot_txt_per_img: False save_mot_txts: False scaled: False threshold: 0.5 trt_calib_mode: False trt_max_shape: 1280 trt_min_shape: 1 trt_opt_shape: 640 use_dark: True use_gpu: False video_file: None ------------------------------------------ ----------- Model Configuration ----------- Model Arch: CenterNet Transform Order: --transform op: WarpAffine --transform op: NormalizeImage --transform op: Permute -------------------------------------------- class_id:0, confidence:0.7541, left_top:[340.11,342.66],right_bottom:[383.31,463.95] class_id:33, confidence:0.6722, left_top:[584.21,195.76],right_bottom:[603.37,214.80] class_id:0, confidence:0.6665, left_top:[482.51,347.15],right_bottom:[529.86,479.07] class_id:0, confidence:0.6513, left_top:[257.18,317.54],right_bottom:[337.76,470.28] class_id:0, confidence:0.6493, left_top:[598.02,360.13],right_bottom:[662.09,477.77] class_id:33, confidence:0.6432, left_top:[403.26,161.21],right_bottom:[544.81,218.00] class_id:33, confidence:0.6079, left_top:[409.43,64.38],right_bottom:[468.53,86.07] class_id:33, confidence:0.6043, left_top:[177.51,315.77],right_bottom:[242.79,360.59] class_id:33, confidence:0.5843, left_top:[321.80,124.17],right_bottom:[343.96,135.97] class_id:33, confidence:0.5681, left_top:[256.50,235.80],right_bottom:[334.02,258.06] class_id:33, confidence:0.5640, left_top:[312.54,21.85],right_bottom:[323.61,29.44] class_id:33, confidence:0.5600, left_top:[539.81,252.46],right_bottom:[558.75,268.81] class_id:0, confidence:0.5552, left_top:[106.13,339.19],right_bottom:[137.33,424.96] class_id:33, confidence:0.5445, left_top:[442.35,120.70],right_bottom:[455.25,130.22] class_id:33, confidence:0.5360, left_top:[295.58,177.89],right_bottom:[532.20,242.15] class_id:33, confidence:0.5320, left_top:[358.71,217.07],right_bottom:[501.16,266.67] class_id:0, confidence:0.5315, left_top:[577.07,381.62],right_bottom:[610.70,479.78] class_id:0, confidence:0.5211, left_top:[530.56,370.44],right_bottom:[585.49,480.41] class_id:33, confidence:0.5056, left_top:[511.19,30.82],right_bottom:[530.04,44.08] class_id:0, confidence:0.5018, left_top:[252.27,380.57],right_bottom:[288.42,417.50] save result to: infer_output/centernet_dla34_140e_coco/000000570688.jpg ------------------ Inference Time Info ---------------------- total_time(ms): 9323.2, img_num: 1 average latency time(ms): 9323.20, QPS: 0.107259 preprocess_time(ms): 52.00, inference_time(ms): 9271.20, postprocess_time(ms): 0.00 ``` 软件版本: PaddleDetection: develop 分支,2022.1.14,id: a794caccf76d58b24a29c9c97c3842debb7924cc paddlepaddle: 2.2.1
操作步骤: 1. 先验证官方模型的预测结果: ``` python tools/infer.py -c configs/centernet/centernet_dla34_140e_coco.yml -o use_gpu=false weights=https://bj.bcebos.com/v1/paddledet/models/centernet_dla34_140e_coco.pdparams --infer_img=demo/000000570688.jpg ``` 结果正确。 2. 导出官方模型: ``` python tools/export_model.py -c configs/centernet/centernet_dla34_140e_coco.yml --output_dir=./inference_model -o use_gpu=false weights=https://bj.bcebos.com/v1/paddledet/models/centernet_dla34_140e_coco.pdparams ``` 3. 用导出的模型来预测同一个图片: ``` python deploy/python/infer.py --model_dir inference_model/centernet_dla34_140e_coco/ --device CPU --output_dir infer_output/centernet_dla34_140e_coco/ --image_file demo/000000570688.jpg ``` 结果错误,表现为预测框错位。 错误的预测结果图片如下: ![输入图片说明](https://images.gitee.com/uploads/images/2022/0119/165915_eb1fe9b5_77714.jpeg "000000570688.jpg") 预测时的控制台输出为: ``` ----------- Running Arguments ----------- batch_size: 1 camera_id: -1 cpu_threads: 1 device: CPU enable_mkldnn: False image_dir: None image_file: demo/000000570688.jpg model_dir: inference_model/centernet_dla34_140e_coco/ output_dir: infer_output/centernet_dla34_140e_coco/ reid_batch_size: 50 reid_model_dir: None run_benchmark: False run_mode: paddle save_images: False save_mot_txt_per_img: False save_mot_txts: False scaled: False threshold: 0.5 trt_calib_mode: False trt_max_shape: 1280 trt_min_shape: 1 trt_opt_shape: 640 use_dark: True use_gpu: False video_file: None ------------------------------------------ ----------- Model Configuration ----------- Model Arch: CenterNet Transform Order: --transform op: WarpAffine --transform op: NormalizeImage --transform op: Permute -------------------------------------------- class_id:0, confidence:0.7541, left_top:[340.11,342.66],right_bottom:[383.31,463.95] class_id:33, confidence:0.6722, left_top:[584.21,195.76],right_bottom:[603.37,214.80] class_id:0, confidence:0.6665, left_top:[482.51,347.15],right_bottom:[529.86,479.07] class_id:0, confidence:0.6513, left_top:[257.18,317.54],right_bottom:[337.76,470.28] class_id:0, confidence:0.6493, left_top:[598.02,360.13],right_bottom:[662.09,477.77] class_id:33, confidence:0.6432, left_top:[403.26,161.21],right_bottom:[544.81,218.00] class_id:33, confidence:0.6079, left_top:[409.43,64.38],right_bottom:[468.53,86.07] class_id:33, confidence:0.6043, left_top:[177.51,315.77],right_bottom:[242.79,360.59] class_id:33, confidence:0.5843, left_top:[321.80,124.17],right_bottom:[343.96,135.97] class_id:33, confidence:0.5681, left_top:[256.50,235.80],right_bottom:[334.02,258.06] class_id:33, confidence:0.5640, left_top:[312.54,21.85],right_bottom:[323.61,29.44] class_id:33, confidence:0.5600, left_top:[539.81,252.46],right_bottom:[558.75,268.81] class_id:0, confidence:0.5552, left_top:[106.13,339.19],right_bottom:[137.33,424.96] class_id:33, confidence:0.5445, left_top:[442.35,120.70],right_bottom:[455.25,130.22] class_id:33, confidence:0.5360, left_top:[295.58,177.89],right_bottom:[532.20,242.15] class_id:33, confidence:0.5320, left_top:[358.71,217.07],right_bottom:[501.16,266.67] class_id:0, confidence:0.5315, left_top:[577.07,381.62],right_bottom:[610.70,479.78] class_id:0, confidence:0.5211, left_top:[530.56,370.44],right_bottom:[585.49,480.41] class_id:33, confidence:0.5056, left_top:[511.19,30.82],right_bottom:[530.04,44.08] class_id:0, confidence:0.5018, left_top:[252.27,380.57],right_bottom:[288.42,417.50] save result to: infer_output/centernet_dla34_140e_coco/000000570688.jpg ------------------ Inference Time Info ---------------------- total_time(ms): 9323.2, img_num: 1 average latency time(ms): 9323.20, QPS: 0.107259 preprocess_time(ms): 52.00, inference_time(ms): 9271.20, postprocess_time(ms): 0.00 ``` 软件版本: PaddleDetection: develop 分支,2022.1.14,id: a794caccf76d58b24a29c9c97c3842debb7924cc paddlepaddle: 2.2.1
评论 (
0
)
Duan Yao
创建了
任务
Duan Yao
修改了
描述
原值
操作步骤:
1. 先验证官方模型的预测结果:
```
python tools/infer.py -c configs/centernet/centernet_dla34_140e_coco.yml -o use_gpu=false weights=https://bj.bcebos.com/v1/paddledet/models/centernet_dla34_140e_coco.pdparams --infer_img=demo/000000570688.jpg
```
结果正确。
2. 导出官方模型:
```
python tools/export_model.py -c configs/centernet/centernet_dla34_140e_coco.yml --output_dir=./inference_model -o use_gpu=false weights=https://bj.bcebos.com/v1/paddledet/models/centernet_dla34_140e_coco.pdparams
```
3. 用导出的模型来预测同一个图片:
```
python deploy/python/infer.py --model_dir inference_model/centernet_dla34_140e_coco/ --device CPU --output_dir infer_output/centernet_dla34_140e_coco/ --image_file demo/000000570688.jpg
```
结果错误,表现为预测框错位。
错误的预测结果图片如下:
![输入图片说明](https://images.gitee.com/uploads/images/2022/0119/165915_eb1fe9b5_77714.jpeg "000000570688.jpg")
预测时的控制台输出为:
```
----------- Running Arguments -----------
batch_size: 1
camera_id: -1
cpu_threads: 1
device: CPU
enable_mkldnn: False
image_dir: None
image_file: demo/000000570688.jpg
model_dir: inference_model/centernet_dla34_140e_coco/
output_dir: infer_output/centernet_dla34_140e_coco/
reid_batch_size: 50
reid_model_dir: None
run_benchmark: False
run_mode: paddle
save_images: False
save_mot_txt_per_img: False
save_mot_txts: False
scaled: False
threshold: 0.5
trt_calib_mode: False
trt_max_shape: 1280
trt_min_shape: 1
trt_opt_shape: 640
use_dark: True
use_gpu: False
video_file: None
------------------------------------------
----------- Model Configuration -----------
Model Arch: CenterNet
Transform Order:
--transform op: WarpAffine
--transform op: NormalizeImage
--transform op: Permute
--------------------------------------------
class_id:0, confidence:0.7541, left_top:[340.11,342.66],right_bottom:[383.31,463.95]
class_id:33, confidence:0.6722, left_top:[584.21,195.76],right_bottom:[603.37,214.80]
class_id:0, confidence:0.6665, left_top:[482.51,347.15],right_bottom:[529.86,479.07]
class_id:0, confidence:0.6513, left_top:[257.18,317.54],right_bottom:[337.76,470.28]
class_id:0, confidence:0.6493, left_top:[598.02,360.13],right_bottom:[662.09,477.77]
class_id:33, confidence:0.6432, left_top:[403.26,161.21],right_bottom:[544.81,218.00]
class_id:33, confidence:0.6079, left_top:[409.43,64.38],right_bottom:[468.53,86.07]
class_id:33, confidence:0.6043, left_top:[177.51,315.77],right_bottom:[242.79,360.59]
class_id:33, confidence:0.5843, left_top:[321.80,124.17],right_bottom:[343.96,135.97]
class_id:33, confidence:0.5681, left_top:[256.50,235.80],right_bottom:[334.02,258.06]
class_id:33, confidence:0.5640, left_top:[312.54,21.85],right_bottom:[323.61,29.44]
class_id:33, confidence:0.5600, left_top:[539.81,252.46],right_bottom:[558.75,268.81]
class_id:0, confidence:0.5552, left_top:[106.13,339.19],right_bottom:[137.33,424.96]
class_id:33, confidence:0.5445, left_top:[442.35,120.70],right_bottom:[455.25,130.22]
class_id:33, confidence:0.5360, left_top:[295.58,177.89],right_bottom:[532.20,242.15]
class_id:33, confidence:0.5320, left_top:[358.71,217.07],right_bottom:[501.16,266.67]
class_id:0, confidence:0.5315, left_top:[577.07,381.62],right_bottom:[610.70,479.78]
class_id:0, confidence:0.5211, left_top:[530.56,370.44],right_bottom:[585.49,480.41]
class_id:33, confidence:0.5056, left_top:[511.19,30.82],right_bottom:[530.04,44.08]
class_id:0, confidence:0.5018, left_top:[252.27,380.57],right_bottom:[288.42,417.50]
save result to: infer_output/centernet_dla34_140e_coco/000000570688.jpg
------------------ Inference Time Info ----------------------
total_time(ms): 9323.2, img_num: 1
average latency time(ms): 9323.20, QPS: 0.107259
preprocess_time(ms): 52.00, inference_time(ms): 9271.20, postprocess_time(ms): 0.00
```
新值
操作步骤:
1. 先验证官方模型的预测结果:
```
python tools/infer.py -c configs/centernet/centernet_dla34_140e_coco.yml -o use_gpu=false weights=https://bj.bcebos.com/v1/paddledet/models/centernet_dla34_140e_coco.pdparams --infer_img=demo/000000570688.jpg
```
结果正确。
2. 导出官方模型:
```
python tools/export_model.py -c configs/centernet/centernet_dla34_140e_coco.yml --output_dir=./inference_model -o use_gpu=false weights=https://bj.bcebos.com/v1/paddledet/models/centernet_dla34_140e_coco.pdparams
```
3. 用导出的模型来预测同一个图片:
```
python deploy/python/infer.py --model_dir inference_model/centernet_dla34_140e_coco/ --device CPU --output_dir infer_output/centernet_dla34_140e_coco/ --image_file demo/000000570688.jpg
```
结果错误,表现为预测框错位。
错误的预测结果图片如下:
![输入图片说明](https://images.gitee.com/uploads/images/2022/0119/165915_eb1fe9b5_77714.jpeg "000000570688.jpg")
预测时的控制台输出为:
```
----------- Running Arguments -----------
batch_size: 1
camera_id: -1
cpu_threads: 1
device: CPU
enable_mkldnn: False
image_dir: None
image_file: demo/000000570688.jpg
model_dir: inference_model/centernet_dla34_140e_coco/
output_dir: infer_output/centernet_dla34_140e_coco/
reid_batch_size: 50
reid_model_dir: None
run_benchmark: False
run_mode: paddle
save_images: False
save_mot_txt_per_img: False
save_mot_txts: False
scaled: False
threshold: 0.5
trt_calib_mode: False
trt_max_shape: 1280
trt_min_shape: 1
trt_opt_shape: 640
use_dark: True
use_gpu: False
video_file: None
------------------------------------------
----------- Model Configuration -----------
Model Arch: CenterNet
Transform Order:
--transform op: WarpAffine
--transform op: NormalizeImage
--transform op: Permute
--------------------------------------------
class_id:0, confidence:0.7541, left_top:[340.11,342.66],right_bottom:[383.31,463.95]
class_id:33, confidence:0.6722, left_top:[584.21,195.76],right_bottom:[603.37,214.80]
class_id:0, confidence:0.6665, left_top:[482.51,347.15],right_bottom:[529.86,479.07]
class_id:0, confidence:0.6513, left_top:[257.18,317.54],right_bottom:[337.76,470.28]
class_id:0, confidence:0.6493, left_top:[598.02,360.13],right_bottom:[662.09,477.77]
class_id:33, confidence:0.6432, left_top:[403.26,161.21],right_bottom:[544.81,218.00]
class_id:33, confidence:0.6079, left_top:[409.43,64.38],right_bottom:[468.53,86.07]
class_id:33, confidence:0.6043, left_top:[177.51,315.77],right_bottom:[242.79,360.59]
class_id:33, confidence:0.5843, left_top:[321.80,124.17],right_bottom:[343.96,135.97]
class_id:33, confidence:0.5681, left_top:[256.50,235.80],right_bottom:[334.02,258.06]
class_id:33, confidence:0.5640, left_top:[312.54,21.85],right_bottom:[323.61,29.44]
class_id:33, confidence:0.5600, left_top:[539.81,252.46],right_bottom:[558.75,268.81]
class_id:0, confidence:0.5552, left_top:[106.13,339.19],right_bottom:[137.33,424.96]
class_id:33, confidence:0.5445, left_top:[442.35,120.70],right_bottom:[455.25,130.22]
class_id:33, confidence:0.5360, left_top:[295.58,177.89],right_bottom:[532.20,242.15]
class_id:33, confidence:0.5320, left_top:[358.71,217.07],right_bottom:[501.16,266.67]
class_id:0, confidence:0.5315, left_top:[577.07,381.62],right_bottom:[610.70,479.78]
class_id:0, confidence:0.5211, left_top:[530.56,370.44],right_bottom:[585.49,480.41]
class_id:33, confidence:0.5056, left_top:[511.19,30.82],right_bottom:[530.04,44.08]
class_id:0, confidence:0.5018, left_top:[252.27,380.57],right_bottom:[288.42,417.50]
save result to: infer_output/centernet_dla34_140e_coco/000000570688.jpg
------------------ Inference Time Info ----------------------
total_time(ms): 9323.2, img_num: 1
average latency time(ms): 9323.20, QPS: 0.107259
preprocess_time(ms): 52.00, inference_time(ms): 9271.20, postprocess_time(ms): 0.00
```
软件版本:
PaddleDetection: develop 分支,2022.1.14,id: a794caccf76d58b24a29c9c97c3842debb7924cc
paddlepaddle: 2.2.1
展开全部操作日志
折叠全部操作日志
登录
后才可以发表评论
状态
待办的
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (45)
标签 (42)
release/2.8
develop
release/2.7.1
release/2.7
revert-9145-czy-det
release/2.6.1
revert-8967-use_shape_memory_for_dino_dataloader
release_2_7_npu
release_2_6_1_npu
revert-8915-fix_paddle_shape
jzhang533-patch-1
release/2.6
release/2.5
owl-vit
onnx_trt
revert-6901-fix_vit_faster_hang_L
niu_fair_mort_prof
release/2.4
release/2.3
release/0.5
release/2.2
revert-4317-multi-scale-test
release/2.1
release/2.0
yzl19940819-patch-2
yzl19940819-patch-1
cherry_update_2.0.1
release/2.0-rc
release/0.4
master
release/2.0-beta
revert-2109-fix_dy_ssd_mbv1
dygraph
liuhuiCNN-patch-1
update_yolov3_config
refactor_dygraph_yolo
htc_v2
update_ppyolo_tiny
release/0.3
add_kitti_proto
qingqing01-patch-1
release/0.2
add_some_lr_scheduler
add_lr_scheduler
release/0.1
v2.8.0
v2.7.0
v2.6.0
v2.5.0
2.5.0
v2.4.0
v2.3.0
v2.2.0
v2.1.0
v2.0.0
v2.0.0-rc0
v0.1.0
v1.5.1
lite-v0.1
v1.5.0
v1.4.1
v1.4.0
v1.3.2
v1.3.1
v1.3.0
v1.2.1
v1.2.0
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v1.0.0-rc0
v0.15.0
v0.15.0-rc0
v0.14.0
v0.13.0
v0.12.0
v0.11.1a2
v0.11.1a1
v0.11.0
v0.10.0
v0.10.0rc4
v0.10.0rc
v0.9.0
v0.9.0a0
V0.8.0b1
V0.8.0b0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
Python
1
https://gitee.com/paddlepaddle/PaddleDetection.git
git@gitee.com:paddlepaddle/PaddleDetection.git
paddlepaddle
PaddleDetection
PaddleDetection
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册