-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python convert tool not working for yolo5s.onnx conversion although reporting success #4
Comments
I had the same exact problem, but for Darknet with YOLO. My fix was to just use the |
Hi @2tefan , thanks for your reply. Okay interesting. I think when I tried the 5.16 kernel last (ie. using https://dl.khadas.com/Firmware/VIM3/Ubuntu/SD_USB/VIM3_Ubuntu-gnome-focal_Linux-5.16-rc2_arm64_SD-USB_V1.0.9-211217.img.xz - I believe I wasnt able to run anything on the NPU at all - I think there was some driver issue. I think also the khadas team in their forums advised to stick to the 4.9 kernel version). But following your suggestion I might try it again. Also based on your comment - I tried to convert yolo3 darknet as documented in the readme.md from ksnn. Here's the code I used to convert the original yolo3:
I also tried as in my last comment to use the convert script with yolov5s.tflite as input but this did also not create any files. Using the previous conversion chain ie. the bash scripts provided in aml_npu_sdk/acuity_toolkit/demo I will try one more time to convert yolov3 to onnx and then see if yields an output + try again with the other kernel. |
Yolov3 from ultralytics -> onnx -> convert is working (output is in outputs). |
Since I couldn't get the pyTorch model to convert (see other ticket). I tried to convert the model to onnx and go from there.
Unfortunately I also did not suceed.
However, when running the convert script no output model is generated (with same parameters as your example in https://github.com/khadas/ksnn/tree/master/examples/onnx) albeit no error is reported.
I generated a yolov5s.onnx using the following steps:
Then used the following script (adapted from resnet50v2.onnx) as in the example. I also
tried to run the convert on resnet50v2.onnx and an output is generated - so yolov5s seems to trigger some edge case.
I attached the full log of the convert output (yolo-conv.log).
The last part of the output is:
There are also some remains of the conversion in /tmp/...
If you have any hint whats going wrong here - that would be very much appreciated.
Maybe there are some operations which are not supported?
Anyhow, I will try the tflite conversion next.
The text was updated successfully, but these errors were encountered: