-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
Yolov5 Torchscript Lite Version #5809
Comments
@aseprohman 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. We've created a few short guidelines below to help users provide what we need in order to get started investigating a possible problem. How to create a Minimal, Reproducible ExampleWhen asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:
For Ultralytics to provide assistance your code should also be:
If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem. Thank you! 😃 |
basic tutorial not working: |
@aseprohman have you solved this ? |
FYI, The official torchscript exported by yolov5 only contains the general model inferencing part, one must implement the pre-preprocess ( We did some experiments on yolort to embed the pre-processing and post-processing into the torchscript graph, so yolort can maintain a similar input and output interface with detr example in torchlive, here is a notebook for intuition of yolort. I think this can be used as the base of the experiment. (In order to improve the user-friendliness of the interface, we use the pytorch-lightning module, |
@adrianholovaty you may try again. I run yolov5 demo with my own model successfully on android now. It do need to modify export.py in yolov5 as my merge request below. |
@aseprohman @yinrong good news 😃! Your original issue may now be fixed ✅ in PR #6183. To receive this update:
Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀! |
Search before asking
Question
Hello @glenn-jocher et all,
when I run android demo project for yolov5 on android I see error message below. I have follow any insctruction for save model with _save_for_lite_interpreter() method but it has no change. How to fixed it ? thanks
Additional
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.pytorch.demo.objectdetection/org.pytorch.demo.objectdetection.MainActivity}: com.facebook.jni.CppException: PytorchStreamReader failed locating file bytecode.pkl: file not found ()
The text was updated successfully, but these errors were encountered: