Telemetry介紹
上一篇文章我們介紹了Intel Developer Cloud Telemetry的概念和功能,通過該功能的數(shù)據(jù)分析,可以更好地優(yōu)化產(chǎn)品方案。有關(guān)Telemetry 的工作原理和集成方法,我將在這篇文章里細(xì)細(xì)解釋。耐心看下去,相信您肯定可以在自己應(yīng)用中開啟這個(gè)功能。Telemetry收集流程

Telemetry集成
這次依然選擇object-detection-python實(shí)例來介紹集成方法,應(yīng)用程序的 python 代碼中調(diào)用了applicationMetricWriter模塊向Telemetry傳遞數(shù)據(jù)指標(biāo)如,幀率、推理時(shí)間、模型名稱、推理硬件信息,下面通過具體代碼來展示詳細(xì)信息。-
Step1. 登錄JupyterLab
-
Step2. 程序源碼分析

#!/usr/bin/env python
import applicationMetricWriter
...
def main():
...
try:
infer_time_start = time.time()
with open(processed_vid, "rb") as data:
while frame_count < video_len:
byte = data.read(CHUNKSIZE)
if not byte == b"":
deserialized_bytes = np.frombuffer(byte, dtype=np.uint8)
in_frame = np.reshape(deserialized_bytes, newshape=(n, c, h, w))
inf_time = time.time()
exec_net.start_async(request_id=current_inference,inputs={input_blob: in_frame})
# Retrieve the output of an earlier inference request
if previous_inference >= 0:
status = infer_requests[previous_inference].wait()
if status is not 0:
raise Exception("Infer request not completed successfully")
det_time = time.time() - inf_time
applicationMetricWriter.send_inference_time(det_time*1000)
res = output_postprocessor(exec_net.requests[previous_inference].output_blobs)
processBoxes(frame_count, res, labels_map, args.prob_threshold, width, height, result_file)
frame_count += 1
…
applicationMetricWriter.send_application_metrics(model_xml, args.device)
-
Step3.Telemetry數(shù)據(jù)訪問

https://devcloud.intel.com/edge/metrics/d/+ID
比如:https://devcloud.intel.com/edge/metrics/d/573403訪問該路徑即可獲取Telemetry 的數(shù)據(jù)了。
總 結(jié)
看到這相信您一定理解了Intel Developer Cloud Telemetry 的集成方法了,它并沒有我們想象的那么復(fù)雜。我這里總結(jié)出來,只是為了方便剛開始接觸這塊的您更快上手,不用花費(fèi)太多精力就可以更快的把事情搞定。如果您在使用過程中有碰到問題,期待一起交流。這篇就到這吧。審核編輯 :李倩
-
AI
+關(guān)注
關(guān)注
87文章
34145瀏覽量
275248 -
應(yīng)用程序
+關(guān)注
關(guān)注
38文章
3322瀏覽量
58694 -
數(shù)據(jù)分析
+關(guān)注
關(guān)注
2文章
1470瀏覽量
34780
原文標(biāo)題:Intel Developer Cloud Telemetry數(shù)據(jù)分析(二)
文章出處:【微信號:SDNLAB,微信公眾號:SDNLAB】歡迎添加關(guān)注!文章轉(zhuǎn)載請注明出處。
發(fā)布評論請先 登錄
Intel PXA27x Processor Family Developer's Manual
數(shù)據(jù)分析需要的技能
怎么有效學(xué)習(xí)Python數(shù)據(jù)分析?
BI分享秀——高度開放的數(shù)據(jù)分析經(jīng)驗(yàn)共享
BI數(shù)據(jù)分析軟件使用指南
電商數(shù)據(jù)分析攻略,讓你輕松搞定數(shù)據(jù)分析!
數(shù)據(jù)分析步驟
IBM Cloud Pak for Data平臺讓數(shù)據(jù)分析變得更簡單
Intel? Developer Cloud Telemetry數(shù)據(jù)分析
Intel Developer Cloud Telemetry數(shù)據(jù)分析(一)

Intel Developer Cloud之Telemetry數(shù)據(jù)分析

評論