yolov3_detection_config.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "preproc_name" : "PyPreproc",
  26. "custom_preproc_params" : {
  27. "pyclass_name" : "Yolov3Preproc"
  28. },
  29. "postproc_name" : "PyPostproc",
  30. "custom_postproc_params" : {
  31. "pyclass_name" : "Yolov3Postproc",
  32. "threshold" : 0.5
  33. },
  34. "model_input_pixel_format" : "ARGB32",
  35. "batching_timeout" : 100,
  36. "device_id" : 0
  37. }
  38. },
  39. "osd" : {
  40. "class_name" : "cnstream::Osd",
  41. "parallelism" : 1,
  42. "max_input_queue_size" : 20,
  43. "next_modules" : ["encode"],
  44. "custom_params" : {
  45. "label_path" : "../../data/models/label_map_coco.txt"
  46. }
  47. },
  48. "encode" : {
  49. "class_name" : "cnstream::Encode",
  50. "parallelism" : 1,
  51. "max_input_queue_size" : 10,
  52. "custom_params" : {
  53. "frame_rate" : 25,
  54. "encoder_type" : "cpu",
  55. "file_name" : "output.mp4",
  56. "device_id": 0
  57. }
  58. }
  59. }