Skip to content
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

Merge classification and detection Model onnx #11364

Closed
1 task done
2022Mahdi opened this issue Apr 15, 2023 · 2 comments
Closed
1 task done

Merge classification and detection Model onnx #11364

2022Mahdi opened this issue Apr 15, 2023 · 2 comments
Labels
question Further information is requested Stale

Comments

@2022Mahdi
Copy link

Search before asking

Question

im trying to Merge two models first one is a detection model and i would like to feed detected object to a classifier model both model traind by yolov5 and converted to onnx , i need an onnx model that get an image and use both models to detect and classify object

note:i know i can directly classfiy and detecte object using detection model but i prefer to have more accurate model

Additional

No response

@2022Mahdi 2022Mahdi added the question Further information is requested label Apr 15, 2023
@glenn-jocher
Copy link
Member

@2022Mahdi to accomplish this, you can load both ONNX models within a single script and run the detection model followed by the classification model on the detected objects. After obtaining the detection results, you will need to extract the bounding boxes of the detected objects and crop them out of the original image to feed to the classification model. You can then merge the results of the two models to obtain the final predictions. You can use the ONNX runtime to execute the models within your script. For more information on using ONNX for object detection and classification, please refer to the Ultralytics YOLOv5 documentation available at https://docs.ultralytics.com/yolov5/.

@github-actions
Copy link
Contributor

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

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 YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label May 16, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants