Skip to content

Commit

Permalink
Added rz/v2h support
Browse files Browse the repository at this point in the history
  • Loading branch information
wk-mnA committed Feb 28, 2024
1 parent 64b6ed5 commit e5efa6e
Show file tree
Hide file tree
Showing 77 changed files with 6,516 additions and 103 deletions.
357 changes: 279 additions & 78 deletions R01_object_detection/README.md

Large diffs are not rendered by default.

Binary file removed R01_object_detection/exe/object_detection
Binary file not shown.
Binary file added R01_object_detection/exe_v2h/object_detection
Binary file not shown.
76 changes: 76 additions & 0 deletions R01_object_detection/exe_v2h/yolov3_onnx/deploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"nodes": [
{
"op": "null",
"name": "input1",
"inputs": []
},
{
"op": "tvm_op",
"name": "tvmgen_default_tvmgen_default_tvmgen_default_mera_drp_main_0",
"attrs": {
"flatten_data": "0",
"func_name": "tvmgen_default_tvmgen_default_tvmgen_default_mera_drp_main_0",
"hash": "8204a5bc4fae0685",
"num_outputs": "3",
"num_inputs": "1",
"global_symbol": "tvmgen_default_tvmgen_default_tvmgen_default_mera_drp_main_0",
"Compiler": "mera_drp"
},
"inputs": [
[
0,
0,
0
]
]
}
],
"arg_nodes": [0],
"heads": [
[
1,
0,
0
],
[
1,
1,
0
],
[
1,
2,
0
]
],
"attrs": {
"dltype": [
"list_str",
[
"float32",
"float16",
"float16",
"float16"
]
],
"device_index": [
"list_int",
[1, 1, 1, 1]
],
"storage_id": [
"list_int",
[0, 1, 2, 3]
],
"shape": [
"list_shape",
[
[1, 3, 416, 416],
[1, 255, 13, 13],
[1, 255, 26, 26],
[1, 255, 52, 52]
]
]
},
"node_row_ptr": [0, 1, 4]
}
12 changes: 12 additions & 0 deletions R01_object_detection/exe_v2h/yolov3_onnx/preprocess/addr_map.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
data_in 0 12c000
data 12c000 279c00
data_out 3a5c00 1fb000
work 5a0c00 80
weight 5a0c80 80
drp_config 5a0d00 f3bc0
aimac_param_cmd 6948c0 20
aimac_param_desc 694900 10
aimac_cmd 694940 180
aimac_desc 694ac0 50
drp_param 694b80 f0
drp_desc 694c80 110
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
110 changes: 110 additions & 0 deletions R01_object_detection/exe_v2h/yolov3_onnx/preprocess/drp_param_info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
OFFSET_ADD:0,layer_name:0_node_pre_0_0_resize_hwc_R_W,drp_lib:resize_hwc,prop:input,node:in,
Param:raddr, Value:0, offset:0, size:4,
Param:waddr, Value:1228800, offset:4, size:4,
Param:IMG_IWIDHT, Value:640, offset:8, size:2,
Param:IMG_IHEIGHT, Value:640, offset:10,size:2,
Param:IMG_ICH, Value:3, offset:12,size:2,
Param:RFU1, Value:0, offset:14,size:2,
Param:IMG_OWIDTH, Value:416, offset:16,size:2,
Param:IMG_OHEIGHT, Value:416, offset:18,size:2,
Param:IMG_OCH, Value:3, offset:20,size:2,
Param:RFU2, Value:0, offset:22,size:2,
Param:OCH0_SYNCSET_DT, Value:1, offset:24,size:2,
Param:OCH0_SYNCSET_ID, Value:12, offset:26,size:2,
Param:OCH1_SYNCSET_DT, Value:2, offset:28,size:2,
Param:OCH1_SYNCSET_ID, Value:12, offset:30,size:2,
Param:OCH2_SYNCSET_DT, Value:4, offset:32,size:2,
Param:OCH2_SYNCSET_ID, Value:12, offset:34,size:2,
Param:OCH3_SYNCSET_DT, Value:24, offset:36,size:2,
Param:OCH3_SYNCSET_ID, Value:12, offset:38,size:2,
Param:INT_DISABLE, Value:1, offset:40,size:2,
Param:RFU3, Value:0, offset:42,size:2,
Param:RFU4, Value:0, offset:44,size:2,
Param:RFU5, Value:0, offset:46,size:2,
Param:RESIZE_ALG, Value:1, offset:48,size:2,
Param:DATA_TYPE, Value:0, offset:50,size:2,
Param:RFU7, Value:0, offset:52,size:2,
Param:RFU8, Value:0, offset:54,size:2,
OFFSET_ADD:56,layer_name:1_node_pre_0_1_imagescaler_R_W,drp_lib:imagescaler,prop:intermediate_data,node:,
Param:raddr, Value:1228800, offset:0, size:4,
Param:waddr, Value:1747968, offset:4, size:4,
Param:IMG_IWIDHT, Value:416, offset:8, size:2,
Param:IMG_IHEIGHT, Value:416, offset:10,size:2,
Param:IMG_ICH, Value:3, offset:12,size:2,
Param:IMG_ICH_ORG, Value:3, offset:14,size:2,
Param:IMG_OWIDTH, Value:416, offset:16,size:2,
Param:IMG_OHEIGHT, Value:416, offset:18,size:2,
Param:IMG_OCH, Value:3, offset:20,size:2,
Param:IMG_OCH_ORG, Value:3, offset:22,size:2,
Param:OCH0_SYNCSET_DT, Value:1, offset:24,size:2,
Param:OCH0_SYNCSET_ID, Value:12, offset:26,size:2,
Param:OCH1_SYNCSET_DT, Value:2, offset:28,size:2,
Param:OCH1_SYNCSET_ID, Value:12, offset:30,size:2,
Param:OCH2_SYNCSET_DT, Value:4, offset:32,size:2,
Param:OCH2_SYNCSET_ID, Value:12, offset:34,size:2,
Param:OCH3_SYNCSET_DT, Value:24, offset:36,size:2,
Param:OCH3_SYNCSET_ID, Value:12, offset:38,size:2,
Param:INT_DISABLE, Value:1, offset:40,size:2,
Param:RFU3, Value:0, offset:42,size:2,
Param:RFU4, Value:0, offset:44,size:2,
Param:RFU5, Value:0, offset:46,size:2,
Param:ADD_ADDR, Value:5901440, offset:48,size:4,
Param:MUL_ADDR, Value:5901504, offset:52,size:4,
Param:DIN_FORMAT, Value:0, offset:56,size:2,
Param:DOUT_RGB_ORDER, Value:1, offset:58,size:2,
Param:RFU6, Value:0, offset:60,size:2,
Param:RFU7, Value:0, offset:62,size:2,
OFFSET_ADD:120,layer_name:2_node_pre_0_3_transpose_R_W,drp_lib:transpose,prop:intermediate_data,node:,
Param:raddr, Value:1747968, offset:0, size:4,
Param:waddr, Value:2786304, offset:4, size:4,
Param:IMG_IWIDHT, Value:416, offset:8, size:2,
Param:IMG_IHEIGHT, Value:416, offset:10,size:2,
Param:IMG_ICH, Value:3, offset:12,size:2,
Param:IMG_ICH_ORG, Value:3, offset:14,size:2,
Param:IMG_OWIDTH, Value:416, offset:16,size:2,
Param:IMG_OHEIGHT, Value:416, offset:18,size:2,
Param:IMG_OCH, Value:3, offset:20,size:2,
Param:IMG_OCH_ORG, Value:3, offset:22,size:2,
Param:OCH0_SYNCSET_DT, Value:1, offset:24,size:2,
Param:OCH0_SYNCSET_ID, Value:12, offset:26,size:2,
Param:OCH1_SYNCSET_DT, Value:2, offset:28,size:2,
Param:OCH1_SYNCSET_ID, Value:12, offset:30,size:2,
Param:OCH2_SYNCSET_DT, Value:4, offset:32,size:2,
Param:OCH2_SYNCSET_ID, Value:12, offset:34,size:2,
Param:OCH3_SYNCSET_DT, Value:24, offset:36,size:2,
Param:OCH3_SYNCSET_ID, Value:12, offset:38,size:2,
Param:INT_DISABLE, Value:1, offset:40,size:2,
Param:RFU1, Value:0, offset:42,size:2,
Param:RFU2, Value:0, offset:44,size:2,
Param:RFU3, Value:0, offset:46,size:2,
Param:WORD_SIZE, Value:1, offset:48,size:2,
Param:IS_CHW2HWC, Value:0, offset:50,size:2,
Param:RFU4, Value:0, offset:52,size:2,
Param:RFU5, Value:0, offset:54,size:2,
OFFSET_ADD:176,layer_name:3_node_pre_0_4_cast_fp16_fp32_R_W,drp_lib:cast_fp16_fp32,prop:intermediate_data,node:,
Param:raddr, Value:2786304, offset:0, size:4,
Param:waddr, Value:3824640, offset:4, size:4,
Param:IMG_IWIDHT, Value:416, offset:8, size:2,
Param:IMG_IHEIGHT, Value:416, offset:10,size:2,
Param:IMG_ICH, Value:3, offset:12,size:2,
Param:RFU1, Value:0, offset:14,size:2,
Param:IMG_OWIDTH, Value:416, offset:16,size:2,
Param:IMG_OHEIGHT, Value:416, offset:18,size:2,
Param:IMG_OCH, Value:3, offset:20,size:2,
Param:RFU2, Value:0, offset:22,size:2,
Param:OCH0_SYNCSET_DT, Value:1, offset:24,size:2,
Param:OCH0_SYNCSET_ID, Value:12, offset:26,size:2,
Param:OCH1_SYNCSET_DT, Value:2, offset:28,size:2,
Param:OCH1_SYNCSET_ID, Value:12, offset:30,size:2,
Param:OCH2_SYNCSET_DT, Value:4, offset:32,size:2,
Param:OCH2_SYNCSET_ID, Value:12, offset:34,size:2,
Param:OCH3_SYNCSET_DT, Value:24, offset:36,size:2,
Param:OCH3_SYNCSET_ID, Value:12, offset:38,size:2,
Param:INT_DISABLE, Value:1, offset:40,size:2,
Param:RFU1, Value:0, offset:42,size:2,
Param:RFU2, Value:0, offset:44,size:2,
Param:RFU3, Value:0, offset:46,size:2,
Param:CAST_MODE, Value:0, offset:48,size:2,
Param:RFU1, Value:0, offset:50,size:2,
Param:RFU2, Value:0, offset:52,size:2,
Param:RFU3, Value:0, offset:54,size:2,
Binary file not shown.
76 changes: 76 additions & 0 deletions R01_object_detection/exe_v2h/yolov3_onnx_fhd/deploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"nodes": [
{
"op": "null",
"name": "input1",
"inputs": []
},
{
"op": "tvm_op",
"name": "tvmgen_default_tvmgen_default_tvmgen_default_mera_drp_main_0",
"attrs": {
"flatten_data": "0",
"func_name": "tvmgen_default_tvmgen_default_tvmgen_default_mera_drp_main_0",
"hash": "8204a5bc4fae0685",
"num_outputs": "3",
"num_inputs": "1",
"global_symbol": "tvmgen_default_tvmgen_default_tvmgen_default_mera_drp_main_0",
"Compiler": "mera_drp"
},
"inputs": [
[
0,
0,
0
]
]
}
],
"arg_nodes": [0],
"heads": [
[
1,
0,
0
],
[
1,
1,
0
],
[
1,
2,
0
]
],
"attrs": {
"dltype": [
"list_str",
[
"float32",
"float16",
"float16",
"float16"
]
],
"device_index": [
"list_int",
[1, 1, 1, 1]
],
"storage_id": [
"list_int",
[0, 1, 2, 3]
],
"shape": [
"list_shape",
[
[1, 3, 416, 416],
[1, 255, 13, 13],
[1, 255, 26, 26],
[1, 255, 52, 52]
]
]
},
"node_row_ptr": [0, 1, 4]
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
data_in 0 a8c000
data a8c000 279c00
data_out d05c00 1fb000
work f00c00 80
weight f00c80 80
drp_config f00d00 f3bc0
aimac_param_cmd ff48c0 20
aimac_param_desc ff4900 10
aimac_cmd ff4940 180
aimac_desc ff4ac0 50
drp_param ff4b80 f0
drp_desc ff4c80 110
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit e5efa6e

Please sign in to comment.