
Maria Chen
Maria Chen
About
- Username
- Maria Chen
- Joined
- Visits
- 1,066
- Last Active
- Roles
- Member, ModeratorsKL520, ModeratorsKL720, ModeratorsAIModel
Comments
-
Hi, Thank you for your patience as well. We've found the solution now: In km.analysis, we should set the parameter datapath_bitwidth_mode to "all int8" An example code would be: bie_model_path = km.analysis(input_mapping, threads=4, datapa…
-
您好, 除了KL520以外都會支援multiple inputs,但是您的model (model.onnx) 經過optimize之後,還是會有不支持的operators (像是Exp, Where, etc.)。 轉換模型時,一般會用IP Evaluator去檢查後,再來用Netron之類的工具去檢查onnx有沒有不支援的operators。不好意思…
-
您好, 是的,Kneron toolchain的binary都是針對x86_64的架構編譯的,在ARM上跑不了 (除非ARM上的docker可以模擬x86_64的指令)。我們建議您使用x86_64的環境喔 這些是用上次提供的convert_model.py和edited_path.py跑出來的nef檔: https://www.kneron.com/forum/upload…
-
Hi, I've ran the script and KL630 also didn't work for me, while KL720 did. It seems like the error was caused by KL630's nmem not being able to fit in the quantized GlobalAveragePool. We are still looking into the solution. Thank you for your patie…
-
您好, 我們不是對所有platforms的operators很熟悉,所以建議您先去將模型轉換成onnx模型然後提供onnx模型給我們,我們才有辦法用IP Evaluator去查onnx模型喔,不好意思麻煩您了!
-
您好, 我用了Model_Classification_Quantilization的e2e_simulator.py (改了一些path)和提供的optimized_MobileNetV2.onnx,可以正常地跑。我另外用自己的script也可以成功轉換成nef模型 (KL720),使用的scripts可以提供給您做參考。 https://www.kneron.com/forum/up…
-
Hi Nhleem, Thank you for providing the info and files. There was a bug in the toolchain related to KL630 that was fixed in v0.25.1. Could you update the docker ($ docker pull kneron/toolchain:latest) and try converting the model again? Thanks!
-
您好, 這個我不太確定,可能會需要麻煩您將這個model輸出成onnx,然後跑Kneron toolchain的IP Evaluator去得知是否支援。 或是可以請您提供模型嗎? 謝謝!
-
Hi, Could you also provide the following so we could try debugging? Thanks! -The original onnx model and the optimized onnx model -The toolchain version (please use the command cat /workspace/version.txt) -The log
-
您好, 如果您已經有model,可以直接把model export成onnx出來後,跑IP Evaluator看看就能確定有無支援了。有時候雖然Operator type有支援,但參數設定不好 (e.g. pad數值太大) NPU也可能沒辦法支援 不過ZeroPad2d應該大機率會被轉成onnx的pad沒錯,像是keras的ZeroPad…
-
您好, 如果是classification模型的話,可以參考Ethon介紹的model zoo的模型,另外我們也推薦使用MobileNet。
-
Hi, Onnx models should be able to be converted to nef models as long as the operators are supported. Please refer to our documentation: Hardware Supported Operators - Document Center (kneron.com) We did not find the file onnx2NEF_KL520.py, so we use…
-
您好, 模型有KL720不支援的operators,像是Gather、Cast、Unsqueeze。我們會建議您將不支援的operators替換掉,然後重新做訓練,或是直接更換模型。 這個文檔有我們支援的operators,可以提供給您做參考: Hardware Supported Operators - Document Center (kneron.com…
-
Hi, I've checked the onnx model PSV_edge_generator.onnx, and it has unsupported operators "InstanceNormalization" even after I optimized the model. https://www.kneron.com/forum/uploads/826/T9MCCFCAE0AM.png A list of supported operators: H…
-
Hi FK, You might not be able to run Python examples on Kneron PLUS with Raspberry Pi 3B, because the supported OS is listed below: https://www.kneron.com/forum/uploads/007/69RFUA5I6BR2.png However, as long as your Raspberry Pi 3B fits the requiremen…
-
Hi FK, The error seems to be a failed USB configuration error. Please check if your OS fits these requirements: https://www.kneron.com/forum/uploads/298/VJ1PV8XAS8RJ.png And if you have these USB permissions configured: https://www.kneron.com/forum/…
-
Hi FK, As long as the IP camera can connect and send data to the environment with the KL520 device, it should be possible. You could refer to the python example KL520DemoCamGenericImageInferenceDropFrame.py, since it uses a camera to take in images,…
-
Hi FK, Have you installed the Python package? Please go to kneron_plus/python/package/[your environment], and pip install the .whl and try running the python examples again. https://www.kneron.com/forum/uploads/112/TDU9IA0JRH67.png Dependencies for …
-
Hi FK, The log is showing that you are still using flash boot mode, so you would need to either: -Update dongle to USB boot, then the Python program would load from SCPU_FW_PATH and NCPU_FW_PATH when you run the program, or -Update dongle to flash b…
-
Hi FK, If you are using KL520 dongle on Kneron PLUS, please make sure that: -These dependencies are installed: Install Dependency - Document Center (kneron.com) -In regards to the warning, we would recommend you to use the same version for your firm…
-
您好, yolov8n的onnx model裡面有Softmax的operator,而我們不支援Softmax 請參照Kneron支援的operators: Hardware Supported Operators - Document Center (kneron.com) https://www.kneron.com/forum/uploads/213/ENYWKNHDDMHM.png 我們會建議您從onnx model剪掉Con…
-
您好, 請問一下您的yolov8n onnx model是否有經過onnx optimization? https://www.kneron.com/forum/uploads/440/ZGP319XO6ZXY.png 因為最新版本的toolchain已經不支持ktc.onnx_optimizer.onnx2onnx_flow,所以請用: python /workspace/libs/kneronnxopt/optimize.py …
-
Hi, The following links are: - [3.1.4. TF Lite to ONNX] 3. Floating-Point Model Preparation - Document Center (kneron.com) - [5. TF Lite to ONNX] ONNX Converter - Document Center (kneron.com)
-
Hi, Besides using 100 images related to the ones you used in training and inferencing (the images should have variety as well) for quantization, there are other ways to debug when the onnx and bie results are greatly different: -Check the channel or…
-
Hi, According to the optimized onnx model, it seems like the correct input name for the onnx model is "images" https://www.kneron.com/forum/uploads/490/FXAIJC3DV9I0.png https://www.kneron.com/forum/uploads/210/M8OWCBP7CS4R.png Please chang…
-
Hi Jin, Thank you for providing the files. We'll take a look at them and get back to you. How many images did you use to quantize your onnx model into bie model? We recommend you to use around 100 images, relevant to the ones you used to train and i…
-
Hi Jin, Could you provide the following files so that we could check them for you? Thanks! -Optimized onnx model -Python script for converting your model in docker -Input images used in the python script -Postprocess code for optimized onnx model -L…
-
Hi, It seems like the KL720 device failed to reconnect when the firmware is updating on it. Just to make sure, have you installed the following dependencies on your Ubuntu 24.04? Also, please check if your OS is verified to build and run Kneron PLUS…
-
Hi, According to your screenshot, it seems like you've built the DFUT console, but your firmware is outdated (KDP). To update your firmware, please run DFUT_console at kneron_plus/build/bin. For example, to update KL520 to USB boot mode, you could e…
-
您好, 理論上,Ubuntu23.10以上也可以build C的Kneron PLUS examples以及DFUT console (DFUT console是在Kneron PLUS裡面build,而不是Kneron DFUT本身)。目前尚未聽說會更新建置環境