Forums - Convert YOLOv5 ONNX to DLC error

4 posts / 0 new
Last post
Convert YOLOv5 ONNX to DLC error
sang.trinh
Join Date: 19 Sep 19
Posts: 1
Posted: Mon, 2021-04-26 02:49

Hello,

The new update SNPE 1.49 has supported for YOLOv5 ONNX conversion. Howerver, when I convert to DLC, there is an error

183 - ERROR - Node Mul_582: Unable to permute shape [1, 3, 80, 80, 2] to NSC ordering

Below is my steps to convert YoloV5 to ONNX:

1. Export trained model .pt to .onnx by https://github.com/ultralytics/yolov5/issues/251

2. Run onnx-simplifier

3. Run snpe-onnx-to-dlc

Any help is appreaciated. Thanks

  • Up0
  • Down0
priyal.george
Join Date: 16 Mar 21
Posts: 2
Posted: Sun, 2021-05-30 23:02

Hi, 

Have you figured it out? I'm also trying to find how to convert yolov5 to dlc and get results. If you have got it, kindly help

  • Up0
  • Down0
se.evdokimov
Join Date: 24 Aug 21
Posts: 1
Posted: Wed, 2021-08-25 06:52

Seems to be related: https://github.com/ultralytics/yolov5/issues/2881, but still does not answer how to convert a trained model.

  • Up0
  • Down0
ngocsang
Join Date: 20 Dec 19
Posts: 1
Posted: Fri, 2021-11-19 00:29
SNPE currently support Yolov5 whole model without 5D operations. 
Please try with this
snpe-onnx-to-dlc -i yolov5s.onnx --out_node 742 --out_node 762 --out_node 782
 
You will need to do post processing the remain nodes by yourself, outside of dlc.
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.