forked from hairuiGo/CNStream
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. fix some issues on Edge platform Co-authored-by: zhupengdong <[email protected]>
- Loading branch information
Showing
15 changed files
with
996 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Instruction # | ||
This Demo shows how to run two pipelines in one App. The first pipeline runs on card 0 while second works on card 1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"source" : { | ||
"class_name" : "cnstream::DataSource", | ||
"parallelism" : 0, | ||
"next_modules" : ["detector"], | ||
"show_perf_info" : true, | ||
"custom_params" : { | ||
"output_type" : "mlu", | ||
"decoder_type" : "mlu", | ||
"output_buf_number" : 8, | ||
"device_id" : 0 | ||
} | ||
}, | ||
|
||
"detector" : { | ||
"class_name" : "cnstream::Inferencer", | ||
"parallelism" : 1, | ||
"max_input_queue_size" : 20, | ||
"next_modules" : ["osd"], | ||
"show_perf_info" : true, | ||
"custom_params" : { | ||
"model_path" : "../../../data/models/MLU270/Primary_Detector/ssd/resnet34_ssd.cambricon", | ||
"func_name" : "subnet0", | ||
"postproc_name" : "PostprocSsd", | ||
"threshold" : 0.5, | ||
"batching_timeout" : 100, | ||
"device_id" : 0 | ||
} | ||
}, | ||
|
||
"osd" : { | ||
"class_name" : "cnstream::Osd", | ||
"parallelism" : 4, | ||
"max_input_queue_size" : 20, | ||
"next_modules" : ["displayer"], | ||
"show_perf_info" : true, | ||
"custom_params" : { | ||
// "chinese_font_path" : "/user/include/wqy_zenhei.ttf", | ||
"label_path" : "../../../data/models/MLU270/Primary_Detector/ssd/label_voc.txt" | ||
} | ||
}, | ||
|
||
"displayer" : { | ||
"class_name" : "cnstream::Displayer", | ||
"parallelism" : 1, | ||
"max_input_queue_size" : 20, | ||
"show_perf_info" : true, | ||
"custom_params" : { | ||
"window-width" : 1920, | ||
"window-height" : 1080, | ||
"refresh-rate" : 25, | ||
"max-channels" : 32, | ||
"show" : "false", // Please confirm build_display is ON before setting true | ||
"full-screen" : "false" | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.