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 a6541a3 commit c02bfeb
Show file tree
Hide file tree
Showing 77 changed files with 3,699 additions and 325 deletions.
471 changes: 471 additions & 0 deletions Q08_object_counter/README.md

Large diffs are not rendered by default.

File renamed without changes.
76 changes: 76 additions & 0 deletions Q08_object_counter/exe_v2h/animal/animal_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": "e050f4a9fc692759",
"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, 54, 13, 13],
[1, 54, 26, 26],
[1, 54, 52, 52]
]
]
},
"node_row_ptr": [0, 1, 4]
}
Binary file not shown.
6 changes: 6 additions & 0 deletions Q08_object_counter/exe_v2h/animal/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
; Configuration File

[detect]
conf=0.1;
anchors=10,13,16,30,33,23,30,61,62,45,59,119,116,90,156,198,373,326;
objects=bear,boar,bird,cat,cow,deer,dog,fox,horse,rabbit,raccoon,monkey,sheep;
19 changes: 19 additions & 0 deletions Q08_object_counter/exe_v2h/app_conf.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
; Configuration File

[COCO]

model_path=./coco/yolov3_onnx;
label_path=./coco/coco_class.txt;
config_path=./coco/config.ini;

[animal]

model_path=./animal/animal_onnx;
label_path=./animal/animal_class.txt;
config_path=./animal/config.ini;

[vehicle]

model_path=./vehicle/vehicle_onnx;
config_path=./vehicle/config.ini;
label_path=./vehicle/vehicle_class.txt;
File renamed without changes.
8 changes: 8 additions & 0 deletions Q08_object_counter/exe_v2h/coco/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; Configuration File


[detect]

conf=0.5;
anchors=10,13,16,30,33,23,30,61,62,45,59,119,116,90,156,198,373,326;
objects=person,car,backpack,umbrella,fork,kite,tie,tennis racket,person,dog,laptop,mouse,remote,keyboard,cell phone;
76 changes: 76 additions & 0 deletions Q08_object_counter/exe_v2h/coco/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": "036f4701453dc3f3",
"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.
Binary file added Q08_object_counter/exe_v2h/object_counter
Binary file not shown.
6 changes: 6 additions & 0 deletions Q08_object_counter/exe_v2h/vehicle/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
; Configuration File
[detect]

conf=0.5;
anchors=10,13,16,30,33,23,30,61,62,45,59,119,116,90,156,198,373,326;
objects=bus,car,motorcycle,truck,ambulance,Fire truck,LCV,Policecar,bicycle,automobile;
File renamed without changes.
76 changes: 76 additions & 0 deletions Q08_object_counter/exe_v2h/vehicle/vehicle_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": "b4b8d690567be805",
"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, 45, 13, 13],
[1, 45, 26, 26],
[1, 45, 52, 52]
]
]
},
"node_row_ptr": [0, 1, 4]
}
Binary file not shown.
13 changes: 13 additions & 0 deletions Q08_object_counter/exe_v2l/animal/animal_class.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
boar
bear
bird
cat
cow
dog
horse
sheep
rabbit
raccoon
monkey
fox
deer
File renamed without changes.
File renamed without changes.
80 changes: 80 additions & 0 deletions Q08_object_counter/exe_v2l/coco/coco_class.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
person
bicycle
car
motorcycle
airplane
bus
train
truck
boat
traffic light
fire hydrant
stop sign
parking meter
bench
bird
cat
dog
horse
sheep
cow
elephant
bear
zebra
giraffe
backpack
umbrella
handbag
tie
suitcase
frisbee
skis
snowboard
sports ball
kite
baseball bat
baseball glove
skateboard
surfboard
tennis racket
bottle
wine glass
cup
fork
knife
spoon
bowl
banana
apple
sandwich
orange
broccoli
carrot
hot dog
pizza
donut
cake
chair
couch
potted plant
bed
dining table
toilet
tv
laptop
mouse
remote
keyboard
cell phone
microwave
oven
toaster
sink
refrigerator
book
clock
vase
scissors
teddy bear
hair drier
toothbrush
Loading

0 comments on commit c02bfeb

Please sign in to comment.