Default Avatar

Andy Hsieh

Andy Hsieh

About

Username
Andy Hsieh
Joined
Visits
1,086
Last Active
Roles
Member, ModeratorsKL520, ModeratorsKL720, ModeratorsAIModel

Comments

  • @Jyun-Jhe Chou Hi JyuanJhe, 您先幫我下載新的版本 v2.0.2.20 ProgrammingTool 試試,使用方可以參考 ProgrammingTool Guide。 https://www.kneron.com/forum/uploads/130/IUQF29O20TYX.jpg 要操作 MS3F 其他 features 之前也先幫我按一下 tool 內的 "POWER ON&…
  • @Wallace Tseng Hi Wallace, https://www.kneron.com/forum/discussion/comment/1445#Comment_1445 The KL520 didn't support the Reshape and Mul operators, etc. You can refer to the following website URL for the operator's support: https://doc.kneron.com/…
  • @Wallace Tseng Hi Wallace, https://www.kneron.com/forum/discussion/comment/1442#Comment_1442 You use this "hand_landmark_lite.onyx" model and run Kneron's docker scripts python /workspace/scripts/fpAnalyserCompilerIpevaluator_520.py -t 8 …
  • @Wallace Tseng Hi Wallace, https://www.kneron.com/forum/discussion/333/kl520-converting-tflite-model-to-onnx Firstly, you got this error, maybe your image file folder is not on the correct path, or the input_paramas.json does not fill in correctl…
  • @Wayne_Zhou@compal.com Hi Wayne, 由於您在 WebGUI 進行 onnx 轉檔,使用 Kneron tool Chain 版本為 v0.20.2。 您提供的 model 會在 Kneron tool Chain Version v0.20.2 會發生 Error,已確認 Kneron Toolchain 預計會在三月底更新進版修正。
  • @Wayne_Zhou@compal.com Hi Wayne, 看過您提供的 model 導出的 input 和 output 的 shape 沒有給出來,您可能在模型 export 出來的時候要給他們一個固定值。 使用到 Kneron onnx2onnx converter 的時候,至少要求 channel height width 都是固定值,如果全是固定值是…
  • @邱晨剛 遇到這個狀況可能有兩種情況: 您可以檢查您的 model 的位置是否放置正確。 您可能沒有正確的對 KL720 dongle update 相應的 FW。 您可以參考一下 https://doc.kneron.com/docs/#plus_python/introduction/upgrade_ai_device_to_kdp2/#_top (3. Install Driv…
  • @hyun Hi Hyun, I don't know what your "layer configurations" are referring to. Not sure where you see the "memory size too large" message either. If you see the message "memory size too large" when doing Batch Compile …
  • @邱晨剛 Hi 晨剛, 出現錯誤訊息是 assert raw[0] == 0x9EB5A462 是 toolchain 版本的問題,因為您使用的範例 code 是之前 Release 給競賽用的,需要搭配特定的 Kneron Plus、firmware 與 toolchain 版本(所以範例的 nef 可以跑,您訓練出來的 nef 不行,因為您使用的…
  • @盧俊佑 Hi 您可以參考 Kneron PLUS 的 example. [\kneron_plus_v2.1.0]\kneron_plus\python\example_model_zoo\KL720KnModelZooGenericDataInferenceMMPoseRSN18Hand.py 您可能得注意您生成出來的 model 的 pre/post process,有必要會需要自行修改。
  • @weikai Hi weikai, 不知道您是否有設定 USB 權限,看起來這個問題有可能是 USB 權限的問題。 因為您執行 C 有加 sudo。 可是您執行 Python 沒有使用權限。 https://doc.kneron.com/docs/#plus_python/introduction/install_dependency/#3-update-kneron-ai-device-us…
  • Hi Pin_Chen, 看過您提供的 "PRETRAINED_PATH_KL520.yaml" 檔了,這裡面因為您的 class 只有一個(雞蛋),所以 nc: 80 需要改成 nc:1。 因為您使用的 class 只有 1 (egg),所以您使用的 coco.yaml 可能也需要一起改 (nc:80 改成 nc:1, names: ['egg'])。 都修…
  • @Pin_Chen HI Pin, 不好意思,晚回了,看您的截圖是在 Kneron Toolchain docker 內環境,您可以進入下一層的 yolov5 這個資料夾內 (/workspace/ai_training/detection/yolov5/yolov5) 再下指令 (e. g. python ../exporting/yolov5_export.py --data data/pretrained_p…
  • @Pin_Chen HI Pin, 1.關於第一點,您可以從資料夾 Kneron Toolchain docker 的資料夾內找到,路徑位置為: /workspace/ai_training/detection/yolov5/yolov5。 在您的 case, 如何使用 Kneron ToolChain docker 您可以參考: https://doc.kneron.com/docs/#toolchain/man…
  • @Pin_Chen HI Pin, 因為您是 從0開始學習KL520 AI訓練 ,建議您也可以從這個地方 (以下連結) 開始下手。 https://doc.kneron.com/docs/#model_training/object_detection_yolov5/ 您使用 KL520 可以使用 (YOLOv5s (no upsample) model。
  • @Werner Hi Werner, Sorry for the late reply; I have confirmed the problem for you here. These two APIs will have errors in the latest version (kneron/toolchain:v0.19.0) of the Kneron Toolchain for the model you are using. # Optimize the exported on…
  • @林秉宏 Hi 秉宏, 1. 關於您提出的第一點問題,您可以參考一下以下提供的 document 與 Comment。 https://doc.kneron.com/docs/#toolchain/manual/#3-onnx-workflow (3.3 E2E Simulator Check (Floating Point)) https://www.kneron.com/forum/discussion/comment/10…
  • @shao-xuan lin Hi shao-xuan, 不好意思,晚回復您了。 您可以試著使用目前最新推出的 Kneron PLUS v2.0.1 看看。 (提醒 : 記得也需要更新您的 firmware https://doc.kneron.com/docs/#plus_python/tutorial/chapter/upload_firmware/) 然後您可以嘗試將您的 input …
  • @viecorg2774@gmail.com Hi viecorg, 恭喜您成功轉成 nef。 我認為有可能是對 input data 的 preprocess 還有 output data 的 postporcess 與原本的模型有落差才會造成推論不符合預期。 您可以提供 model 與 inference 過程看看。 (20221101_viecorg)
  • @蔡泊均 Hi 泊均, 如果您是使用耐能教育中心提供的 YOLOX 範例 demo,您想要結果圖要產生標籤與預測結果您可以從 KL720DemoGenericInferenceYoloX_BypassHwPreProc.py 這個 scripts 內的 dets 取得 標籤 (label) 和 預測結果 (score) 資訊,取得標籤和預測結果資訊後…
  • @viecorg2774@gmail.com Hi viecorg, 如果您能夠把1維的 Input 弄成 4 維的形式, 就可以達到您想要的目標。 關於除了影像辨識相關應用模型推論的方法您可以參考以下連結: https://www.kneron.com/forum/discussion/259/inference-with-not-image-data#latest
  • @王景瀚 您會出現 Cannot reshape array of size 512000 into shape (1,80,80,3,24) 這個問題應該是 scripts 中 post process 與您最終產出的 nef model 對接出了問題,如果您希望有開啟鏡頭執行 py 檔,您可以使用下面兩個 .py 檔為基礎自行修改。 使用 yolox_plus_d…
  • @王景瀚 Hi 景瀚, 1.看到錯誤訊息,您可以往準備 dataset 還有 configs/yolox/yolox_s_8x8_300e_coco_img_norm.py 設定的方向去尋找錯誤原因。 可參考: https://github.com/open-mmlab/mmdetection/issues/8543 2.與前一個問題類似,您可以參考: https://github.com…
  • @邱冠翔 Hi 冠翔, 您會出現 Invalid program input: The onnx should have one valid opset definition 錯誤訊息原因可能是因為 onnx model 的 opset version 不合規。 解決方式可以參考以下連結: https://www.kneron.com/forum/discussion/comment/1037/#Comment_1…
  • @邱冠翔 Hi 冠翔 您可以嘗試將您的 Keras model export 出來並轉成 onnx model,去確認 onnx model 的 operators 是否有 support KL720 operators。 您可以參考: https://doc.kneron.com/docs/#toolchain/manual/ (2.3 Supported operators, Table 1.2 The functions …
  • @王景瀚 Hi 景瀚, 出現下圖錯誤,您可以往環境建置的部份去尋找錯誤原因。 請確認一下您的環境 Python 3.6+ (您可使用 3.7.10) PyTorch 1.3+ (您可使用 1.7.0、cu11.0) CUDA 9.2+ (If you built PyTorch from source, CUDA 9.0 is also compatible) (您可使用 1.7.0、…
  • @shao-xuan lin Hi shao-xuan, 看過您提供的檔案,好像不是很完整 (e.g. 檔案執行方式、少了圖片),可以的話可否再請您多描述一下您是如何執行您提供的檔案,並且多描述一點 "KL720後推論的結果不一致" 的地方, 方便重現問題。
  • @Anoop Mishra Hi Anoop, I would like to know which result is close to your prediction for the inference of on docker E2E inference and the KL520 device. I guess the docker inference is close to your inference result. If you need to perform inferenc…
  • @Chen-Pocky Hi Pocky, 1. 量化模型時使用到的圖片,是不是會直接影響到量化後的準確率? 最多可以用多少張? 量化模型時使用到的圖片,會直接影響到 .nef model 推論的準確率。 這邊是建議至少使用 100 張以上圖片做量化,但也可以依據您電腦的效能來提升您的圖片數量…
  • @Chen-Pocky Hi Pocky, 是否可以提供您訓練出的 model (onnx.、.nef) 與 一些測試用的 data,我這邊幫您試試看。 您可以在此 (20220912_ChenPocky) 提供。