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
Output nodes before 5D Reshape #2881
Comments
👋 Hello @PiyalGeorge, thank you for your interest in 🚀 YOLOv5! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available. For business inquiries or professional support requests please visit https://www.ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com. RequirementsPython 3.8 or later with all requirements.txt dependencies installed, including $ pip install -r requirements.txt EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit. |
@PiyalGeorge I'm not sure exactly what you mean by the output nodes before 5D reshape, though the 5D reshape is in the Detect layer, so what you are looking for is probably there. Lines 24 to 58 in 5f7d39f
On a side note, onnx-simplifier is now integrated with YOLOv5 export via PR #2815, you can access it like this in the latest code:
|
@glenn-jocher , Thanks for your reply. |
@PiyalGeorge these operations are in the Detect() layer before merging into a single output: Lines 24 to 58 in 5f7d39f
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
thanks @glenn-jocher , The reason i asked the question is because of this - https://developer.qualcomm.com/docs/snpe/revision_history.html |
@PiyalGeorge that's awesome that Qualcomm has added support for YOLOv5 models!! I didn't know about that. I wonder if they have more documentation? |
My ideas are from these links:-
In the qualcomm's SNPE, the final model format we want is a .dlc file. Since there is no direct method to convert .pt file to .dlc, we need to convert the .pt file to onnx then to .dlc (that's the whole idea i get from first link). |
@PiyalGeorge you can skip the Detect() layer concatenation and grid op with the --train mode flag:
Make sure you use the latest master, we recently pushed a fix for this. |
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐! |
@PiyalGeorge were you able to export an already trained YOLOv5 model to DLC? |
Sorry to disappoint, i couldnt figure it out. Its possible, but i was busy. |
Can you specify the output nodes before 5D Reshape?
I'm using a 320X320 yolov5s model from 3.1 release.
Or
In other way:
I converted the yolov5s model to onnx model following this .
Then i simplified the onnx model using this . I tried this in yolov5s - release number :3.1
I wish to know "the output nodes before 5D Reshape". How can i get these output nodes? Kindly help me to know these output nodes.
The text was updated successfully, but these errors were encountered: