-
Notifications
You must be signed in to change notification settings - Fork 152
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Report "std::bad_alloc" when I load the model. #133
Comments
Hi @TonyWu199 , Sorry I could not repreduce this bug now. I guess that you are using the wrong path of the generated torchscript file, please double check that the file path you are pointing to is correct. BTW, we will update the C++ interface of libtorch in this week, check out #132 (comment) for more details. |
@zhiqwang Thanks for this quick answer! I have checked my path several times and this is not the cause. |
@TonyWu199 , We will update the libtorch interface of TorchVision soon, and let us further check whether we still encounter this problem in the new version. |
@TonyWu199 - Sorry for now I couldn't reproduce your bug, I guess this problem is caused by So that we could rule out whether it is caused by |
@zhiqwang I follow your suggestions, but it seems this problem is not caused by cxxopts. I guess it is because the libotrch version? |
Hi @TonyWu199 , We've updated the C++ interface in #136. Besides we also provide an end-to-end and minimal example of how to use yolort models in Unit-test with following scripts This example is independent of |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
The problem happen in main.cpp
https://github.com/zhiqwang/yolov5-rt-stack/blob/82d6afbfc6286ec4e01c9a75730b4c9b9c90fd86/deployment/src/main.cpp#L135
I get an error
The text was updated successfully, but these errors were encountered: