You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

216 satır
6.3KB

  1. dsp:
  2. active: dev
  3. kafka:
  4. topic:
  5. dsp-alg-online-tasks-topic: dsp-alg-online-tasks
  6. dsp-alg-offline-tasks-topic: dsp-alg-offline-tasks
  7. dsp-alg-image-tasks-topic: dsp-alg-image-tasks
  8. dsp-alg-results-topic: dsp-alg-task-results
  9. dsp-recording-task-topic: dsp-recording-task
  10. dsp-recording-result-topic: dsp-recording-result
  11. local:
  12. bootstrap_servers: ['192.168.10.11:9092']
  13. # dsp-alg-online-tasks:
  14. # partition: [0]
  15. # dsp-alg-offline-tasks:
  16. # partition: [0]
  17. # dsp-alg-task-results:
  18. # partition: [0]
  19. producer:
  20. acks: -1
  21. retries: 3
  22. linger_ms: 50
  23. retry_backoff_ms: 1000
  24. max_in_flight_requests_per_connection: 5
  25. consumer:
  26. client_id: dsp_ai_server
  27. group_id: dsp-ai-local
  28. auto_offset_reset: latest
  29. enable_auto_commit: False
  30. max_poll_records: 1
  31. dev:
  32. bootstrap_servers: ['192.168.11.13:9092']
  33. # dsp-alg-online-tasks:
  34. # partition: [0]
  35. # dsp-alg-offline-tasks:
  36. # partition: [0]
  37. # dsp-alg-task-results:
  38. # partition: [0]
  39. producer:
  40. acks: -1
  41. retries: 3
  42. linger_ms: 50
  43. retry_backoff_ms: 1000
  44. max_in_flight_requests_per_connection: 5
  45. consumer:
  46. client_id: dsp_ai_server
  47. group_id: dsp-ai-dev
  48. auto_offset_reset: latest
  49. enable_auto_commit: False
  50. max_poll_records: 1
  51. test:
  52. bootstrap_servers: ['106.14.96.218:19092']
  53. # dsp-alg-online-tasks:
  54. # partition: [0]
  55. # dsp-alg-offline-tasks:
  56. # partition: [0]
  57. # dsp-alg-task-results:
  58. # partition: [0]
  59. producer:
  60. acks: -1
  61. retries: 3
  62. linger_ms: 50
  63. retry_backoff_ms: 1000
  64. max_in_flight_requests_per_connection: 5
  65. consumer:
  66. client_id: dsp_ai_server
  67. group_id: dsp-ai-test
  68. auto_offset_reset: latest
  69. enable_auto_commit: False
  70. max_poll_records: 1
  71. prod:
  72. bootstrap_servers: ['101.132.127.1:19094']
  73. # dsp-alg-online-tasks:
  74. # partition: [1]
  75. # dsp-alg-offline-tasks:
  76. # partition: [1]
  77. # dsp-alg-task-results:
  78. # partition: [1]
  79. producer:
  80. acks: -1
  81. retries: 3
  82. linger_ms: 50
  83. retry_backoff_ms: 1000
  84. max_in_flight_requests_per_connection: 5
  85. consumer:
  86. client_id: dsp_ai_server
  87. group_id: dsp-ai-prod
  88. auto_offset_reset: latest
  89. enable_auto_commit: False
  90. max_poll_records: 1
  91. gpu:
  92. # 'first'- 按升序排列可用的 GPU 设备 ID(默认)
  93. # 'last'- 按 id 降序排列可用的 GPU 设备 id
  94. # 'random'- 随机订购可用的 GPU 设备 ID
  95. # 'load'- 按负载递增排序可用的 GPU 设备 ID
  96. # 'memory'- 通过升序内存使用来排序可用的 GPU 设备 ID
  97. order: 'first'
  98. # 获取可用gpu数量
  99. limit: 10
  100. # 最大负载
  101. maxLoad: 0.85
  102. # 最大内存
  103. maxMemory: 0.85
  104. includeNan: False
  105. excludeID: []
  106. excludeUUID: []
  107. video:
  108. # 视频拉取失败,保存路径
  109. file_path: ../dsp/video/
  110. # 视频加水印开关
  111. video_add_water: True
  112. aliyun:
  113. access_key: LTAI5tSJ62TLMUb4SZuf285A
  114. access_secret: MWYynm30filZ7x0HqSHlU3pdLVNeI7
  115. oss:
  116. endpoint: http://oss-cn-shanghai.aliyuncs.com
  117. bucket: 'ta-tech-image'
  118. connect_timeout: 30
  119. vod:
  120. host_address: https://vod.play.t-aaron.com/
  121. ecsRegionId: "cn-shanghai"
  122. dev:
  123. CateId: 1000468341
  124. test:
  125. CateId: 1000468338
  126. prod:
  127. CateId: 1000468340
  128. service:
  129. frame_score: 0.4 # 获取最低得分以上的图片
  130. filter:
  131. # 识别相似度是否开启
  132. picture_similarity: True
  133. # 相似度阀值
  134. similarity: 0.65
  135. frame_step: 160
  136. timeout: 21600 # 一次识别任务超时时间,单位秒,默认6个小时
  137. cv2_pull_stream_timeout: 1000 # 直播开始视频未推流超时时间
  138. cv2_read_stream_timeout: 1000 # 直播读流中超时时间
  139. recording_pull_stream_timeout: 600 # 录屏拉流超时时间
  140. baidu:
  141. orc:
  142. APP_ID: 28173504
  143. API_KEY: kqrFE7VuygIaFer7z6cRxzoi
  144. SECRET_KEY: yp7xBokyl4TItyGhay7skAN1cMwfvEXf
  145. # 车辆检测
  146. vehicle:
  147. APP_ID: 31096670
  148. API_KEY: Dam3O4tgPRN3qh4OYE82dbg7
  149. SECRET_KEY: 1PGZ9LAXRR5zcT5MN9rHcW8kLBIS5DAa
  150. # 人
  151. person:
  152. APP_ID: 31096755
  153. API_KEY: CiWrt4iyxOly36n3kR7utiAG
  154. SECRET_KEY: K7y6V3XTGdyXvgtCNCwTGUEooxxDuX9v
  155. # 模型相关配置
  156. model:
  157. limit: 3 # 模型组合个数限制
  158. # 日志设置
  159. log:
  160. # 是否开启文件输出 True:开启 False:关闭
  161. enable_file_log: True
  162. # 是否开启控制台日志输出 True:开启 False:关闭
  163. enable_stderr: True
  164. # 日志打印文件夹
  165. base_path: ../dsp/logs/
  166. # 日志文件名称
  167. log_name: dsp.log
  168. # 日志打印格式
  169. log_fmt: "{time:YYYY-MM-DD HH:mm:ss.SSS} [{level}][{process.name}-{process.id}-{thread.name}-{thread.id}][{line}] {module}-{function} - {message}"
  170. # 日志隔离级别
  171. level: INFO
  172. # 日志每天0点创建新文件
  173. rotation: 00:00
  174. # 日志保存时间15天
  175. retention: 15 days
  176. # 线程安全
  177. enqueue: True
  178. # 编码格式
  179. encoding: utf8
  180. #mysql:
  181. # # 数据库信息
  182. # dev:
  183. # host: 192.168.11.13
  184. # port: 3306
  185. # dbname: tuheng_dsp
  186. # username: root
  187. # password: idontcare
  188. # test:
  189. # host: 192.168.11.242
  190. # port: 3306
  191. # dbname: tuheng_dsp
  192. # username: root
  193. # password: idontcare
  194. # prod:
  195. # host: 172.16.1.22
  196. # port: 3306
  197. # dbname: tuheng_dsp
  198. # username: root
  199. # password: TH22#2022
  200. # db_charset: utf8
  201. # # mincached : 启动时开启的闲置连接数量(缺省值 0 开始时不创建连接)
  202. # db_min_cached: 0
  203. # # maxcached : 连接池中允许的闲置的最多连接数量(缺省值 0 代表不闲置连接池大小)
  204. # db_max_cached: 10
  205. # # maxshared : 共享连接数允许的最大数量(缺省值 0 代表所有连接都是专用的)如果达到了最大数量,被请求为共享的连接将会被共享使用
  206. # db_max_shared: 10
  207. # # maxconnecyions : 创建连接池的最大数量(缺省值 0 代表不限制)
  208. # db_max_connecyions: 20
  209. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  210. # db_blocking: True
  211. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  212. # db_max_usage: 0
  213. # # setsession : 一个可选的SQL命令列表用于准备每个会话,如["set datestyle to german", ...]
  214. # db_set_session: None