mirror of
https://github.com/Ascend/ascend_community_projects.git
synced 2025-09-26 20:01:17 +08:00
update for issue readme问题
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
## RefineDet目标检测
|
||||
|
||||
## 1介绍
|
||||
## 1 介绍
|
||||
|
||||
本开发样例是基于mxBase开发的端到端推理的C++应用程序,可在昇腾芯片上进行 RefineDet目标检测,并把可视化结果保存到本地。其中包含RefineDet的后处理模块开发。1.1 支持的产品
|
||||
本开发样例是基于mxBase开发的端到端推理的C++应用程序,可在昇腾芯片上进行 RefineDet目标检测,并把可视化结果保存到本地。其中包含RefineDet的后处理模块开发。
|
||||
|
||||
### 1.1 支持的产品
|
||||
|
||||
本产品以昇腾310(推理)卡为硬件平台。
|
||||
|
||||
@@ -179,18 +181,17 @@ aipp_op {
|
||||
|
||||
## 5 编译运行
|
||||
|
||||
**步骤1** 修改CMakeLists.txt文件 将set(MX_SDK_HOME \$\{SDK安装路径\}\$) 中的\${SDK安装路径}\$替换为实际的SDK安装路径
|
||||
**步骤1** 修改`CMakeLists.txt`文件 将`set(MX_SDK_HOME ${SDK安装路径}$)` 中的`${SDK安装路径}$`替换为实际的SDK安装路径
|
||||
|
||||
**步骤2** 按照**2环境依赖**设置环境变量。
|
||||
|
||||
**步骤3** cd到mxbase目录下,执行如下编译命令:
|
||||
**步骤3** 在项目主目录下执行如下编译命令:
|
||||
|
||||
````
|
||||
bash build.sh
|
||||
````
|
||||
|
||||
**步骤4** 制定jpg图片进行推理,准备一张推理图片放入mxbase 目录下。eg:推理图片为test.jpg
|
||||
cd 到mxbase 目录下
|
||||
**步骤4** 制定jpg图片进行推理,准备一张推理图片放入主目录下。eg:推理图片为test.jpg
|
||||
|
||||
```
|
||||
./refinedet ./test.jpg
|
||||
|
31
RefineDet/config/RefineDet.aippconfig
Normal file
31
RefineDet/config/RefineDet.aippconfig
Normal file
@@ -0,0 +1,31 @@
|
||||
aipp_op {
|
||||
related_input_rank : 0
|
||||
src_image_size_w : 320
|
||||
src_image_size_h : 320
|
||||
crop : false
|
||||
aipp_mode: static
|
||||
input_format : YUV420SP_U8
|
||||
csc_switch : true
|
||||
rbuv_swap_switch : true
|
||||
matrix_r0c0 : 256
|
||||
matrix_r0c1 : 454
|
||||
matrix_r0c2 : 0
|
||||
matrix_r1c0 : 256
|
||||
matrix_r1c1 : -88
|
||||
matrix_r1c2 : -183
|
||||
matrix_r2c0 : 256
|
||||
matrix_r2c1 : 0
|
||||
matrix_r2c2 : 359
|
||||
input_bias_0 : 0
|
||||
input_bias_1 : 128
|
||||
input_bias_2 : 128
|
||||
mean_chn_0 : 104
|
||||
mean_chn_1 : 117
|
||||
mean_chn_2 : 123
|
||||
min_chn_0 : 0.0
|
||||
min_chn_1 : 0.0
|
||||
min_chn_2 : 0.0
|
||||
var_reci_chn_0 : 1.0
|
||||
var_reci_chn_1 : 1.0
|
||||
var_reci_chn_2 : 1.0
|
||||
}
|
3
RefineDet/config/refine_det.cfg
Normal file
3
RefineDet/config/refine_det.cfg
Normal file
@@ -0,0 +1,3 @@
|
||||
CLASS_NUM=21
|
||||
SCORE_THRESH=0.8
|
||||
IOU_THRESH=0.9
|
21
RefineDet/models/VOC.names
Normal file
21
RefineDet/models/VOC.names
Normal file
@@ -0,0 +1,21 @@
|
||||
background
|
||||
aeroplane
|
||||
bicycle
|
||||
bird
|
||||
boat
|
||||
bottle
|
||||
bus
|
||||
car
|
||||
cat
|
||||
chair
|
||||
cow
|
||||
diningtable
|
||||
dog
|
||||
horse
|
||||
motorbike
|
||||
person
|
||||
pottedplant
|
||||
sheep
|
||||
sofa
|
||||
train
|
||||
tvmonitor
|
Reference in New Issue
Block a user