python_demo_config.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "profiler_config" : {
  3. "enable_profiling" : true,
  4. "enable_tracing" : true
  5. },
  6. "source" : {
  7. "class_name" : "cnstream::DataSource",
  8. "next_modules" : ["detector"],
  9. "custom_params" : {
  10. "reuse_cndec_buf" : "true",
  11. "output_type" : "mlu",
  12. "decoder_type" : "mlu",
  13. "output_buf_number" : 32,
  14. "device_id" : 0
  15. }
  16. },
  17. "detector" : {
  18. "class_name" : "cnstream::Inferencer",
  19. "parallelism" : 1,
  20. "max_input_queue_size" : 20,
  21. "next_modules" : ["osd"],
  22. "custom_params" : {
  23. "model_path" : "../../data/models/yolov3_b4c4_argb_mlu270.cambricon",
  24. "func_name" : "subnet0",
  25. "postproc_name" : "PostprocYolov3",
  26. "keep_aspect_ratio" : "true",
  27. "threshold" : 0.5,
  28. "model_input_pixel_format" : "ARGB32",
  29. "batching_timeout" : 100,
  30. "device_id" : 0
  31. }
  32. },
  33. "osd" : {
  34. "class_name" : "cnstream::Osd",
  35. "parallelism" : 1,
  36. "max_input_queue_size" : 20,
  37. "next_modules" : ["rtsp_sink"],
  38. "custom_params" : {
  39. "label_path" : "../../data/models/label_map_coco.txt"
  40. }
  41. },
  42. "rtsp_sink" : {
  43. "class_name" : "cnstream::RtspSink",
  44. "parallelism" : 1,
  45. "max_input_queue_size" : 10,
  46. "custom_params" : {
  47. "encoder_type" : "mlu",
  48. "port" : 8554,
  49. "device_id" : 0
  50. }
  51. }
  52. }