How to use python script on KL720 dongle to inference
My model and script can be used on toolchain.
And then, I will deploy my model and scirpt on KL720 dongle.
I can use the python files of under "/host_lib_v1.0.0/host_lib/python/examples_kl720", but because it havn't inference sricpt files.
So I reference "/host_lib_v1.0.0/host_lib/python/examples_kl520/cam_isi_serial_yolo.py".
However, this problem how to solve that. I don't understand ISI_YOLO_ID about "constants.AppID". What's this? I should how to wirte it?
Tagged:
The discussion has been closed due to inactivity. To continue with the topic, please feel free to post a new discussion.
Comments
host_lib_v1.0.0 python examples_kl720 內沒有跑模型的範例
520 / 720用法不同
請下載GitHub - kneron/host_lib: This project contains python examples for the Kneron USB dongle
這個版本host_lib python範例較完整
我下載了,確實範例比較完整。
不過這個cam_isi_pre_post_host_fcos.py檔案執行會有錯誤
其他的正常,因此我可能會從這兩個,改成我要的dongle視訊串流
yolo_public_example.py
cam_isi_post_host_yolov3_ssd_fd.py
cam_isi_pre_post_host_fcos.py檔案執行會有錯誤這BUG要解決....
因為我發現這檔案是會用KL720底層package的預處理API才錯,
但是我圖片沒經過預處理,丟到模型會有錯誤,這部份是否日後會有修正嗎?
還是說這是SDK要更新嗎? 可是我該如何更新,哪裡可以找到步驟呢?
我執行KL720-cam_isi_pre_post_host_fcos並沒有問題
你可能要確認你的環境
或試試先做一次update_fw
把\app_binaries\KL720\solution_companion裡的2個bin檔copy 到\app_binaries\KL720\dfu\ready_to_load
>py main.py -t KL720-update_fw
感謝解答,這部份解決了。
發現是anaconda問題,要先到原環境去安裝完整套件,就正常使用了,謝謝。