This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 39
[Consolidate all YOLOv5 issues] YOLOv5 export error ValueError: axes don't match array
#125
Labels
YOLOv5
Read the README.
Comments
Btw, If you want to rename an input/output layer, you can easily rewrite it manually using this tool. |
PINTO0309
changed the title
YOLOv5 export error
[Consolidate all YOLOv5 issues] YOLOv5 export error Aug 31, 2022
ValueError: axes don't match array
ValueError: axes don't match array
@PINTO0309 super interesting, thanks for the detailed response! The 3 transpose ops are occurring 1 in each of the output grids P3/8, P4/16, P5/32. The permute op is undesirable as it leaves the output not contiguous, so it requires a .contiguous() method afterward. I'll revisit the idea of removing the permutation completely from YOLOv5. It's a legacy from YOLOv3 onward, but maybe there's a better way I can restructure this module. |
Closed due to no activity for over a week. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue Type
Other
OS
Ubuntu
OS architecture
x86_64
Programming Language
Python
Framework
OpenVINO, PyTorch
Download URL for ONNX / OpenVINO IR
yolov5n_openvino_model.zip
Convert Script
Description
In Google Colab I exported YOLOv5n model from PyTorch to OpenVINO, then used openvino2tensorflow command above which produced error message below.
Relevant Log Output
Source code for simple inference testing code
Using https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb
The text was updated successfully, but these errors were encountered: