From 4f5dae0f373e1f80b6d2ccbaa18652de2660f516 Mon Sep 17 00:00:00 2001 From: dingwei Date: Sat, 16 Apr 2022 07:57:07 +0000 Subject: [PATCH 1/4] add ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL. --- ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md diff --git a/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md b/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md new file mode 100644 index 000000000..e69de29bb -- Gitee From 9f61e5e9e62d063210fe097ed1a86eec981fe930 Mon Sep 17 00:00:00 2001 From: dingwei Date: Sat, 16 Apr 2022 08:43:37 +0000 Subject: [PATCH 2/4] update ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md. --- .../cv/DeepSort_ID0505_for_ACL/README.md | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md b/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md index e69de29bb..0a798ff49 100644 --- a/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md +++ b/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md @@ -0,0 +1,95 @@ +## 模型功能 + +行人重识别(REID) + +## 原始模型 + +参考: + + +原实现模型: + +https://gitee.com/ascend/ModelZoo-TensorFlow/tree/master/TensorFlow/contrib/cv/DeepSort_ID0505_for_TensorFlow + +pb文件下载地址 : + +链接:https://pan.baidu.com/s/1v7Fe_YYT-hZUGCf2u7TI5g +提取码:v41g + +## om模型 + +om模型下载地址: + +链接:https://pan.baidu.com/s/1GCuGdEUiniYZlTdFn2sknw +提取码:keil + +使用ATC模型转换工具进行模型转换时可以参考如下指令: + +``` +atc --model=/root/deepsort/deep_sort.pb --framework=3 --output=/root/deepsort/deep_sort --soc_version=Ascend310 --input_shape="input:1,128,64,3" +``` + +## 数据集准备 + +VOC原始验证集中的图像数据转换为bin文件参见img2bin.py文件: + + +bin格式数据集地址: + +链接:https://pan.baidu.com/s/1h9bWDVEW7-voFHFi7TaTuw 提取码:nwyj + + +## 使用msame工具推理 + + +参考 https://gitee.com/ascend/tools/tree/master/msame, 获取msame推理工具及使用方法。 + + +获取到msame可执行文件之后,进行性能测试。 + +./msame --model "/root/deepsort/deep_sort.om" --input "/root/osnet/query" --output "/root/deepsort/out/" --outfmt TXT + + +## 性能测试 + +使用msame推理工具,参考如下命令,发起推理性能测试: + +``` + +``` + +``` +... +Inference average time : 10.66 ms +Inference average time without first time: 10.66 ms +[INFO] unload model success, model Id is 1 +[INFO] Execute sample success +[INFO] end to destroy stream +[INFO] end to destroy context +[INFO] end to reset device is 0 +[INFO] end to finalize acl + +... +``` + +平均推理性能为 10.66ms + +## 精度测试 + + +``` + +``` + +最终精度:(暂无) + +``` +Ascend310推理结果: + gpu结果: + npu结果: +``` + + + + + -- Gitee From d678fc10f3ca4af9c3bdd049d661e85ef6ccb229 Mon Sep 17 00:00:00 2001 From: dingwei Date: Sat, 16 Apr 2022 08:45:17 +0000 Subject: [PATCH 3/4] update ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md. --- ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md b/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md index 0a798ff49..6a95c2717 100644 --- a/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md +++ b/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md @@ -1,6 +1,6 @@ ## 模型功能 -行人重识别(REID) +目标跟踪 ## 原始模型 @@ -31,11 +31,9 @@ atc --model=/root/deepsort/deep_sort.pb --framework=3 --output=/root/deepsort/de ## 数据集准备 -VOC原始验证集中的图像数据转换为bin文件参见img2bin.py文件: +market1501测试集中的图像数据转换为bin数据集 地址: -bin格式数据集地址: - 链接:https://pan.baidu.com/s/1h9bWDVEW7-voFHFi7TaTuw 提取码:nwyj -- Gitee From cb6ee72567e1c2e262e337ea33428da9ac9d05d8 Mon Sep 17 00:00:00 2001 From: dingwei Date: Sat, 16 Apr 2022 08:47:38 +0000 Subject: [PATCH 4/4] update ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md. --- ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md b/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md index 6a95c2717..50b9a505a 100644 --- a/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md +++ b/ACL_TensorFlow/contrib/cv/DeepSort_ID0505_for_ACL/README.md @@ -18,6 +18,9 @@ pb文件下载地址 : ## om模型 +pb模型转om模型参考freeze_pb.py + + om模型下载地址: 链接:https://pan.baidu.com/s/1GCuGdEUiniYZlTdFn2sknw -- Gitee