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

cxxopts will cause problems in several scenarios #135

Closed
zhiqwang opened this issue Jul 12, 2021 · 0 comments · Fixed by #137
Closed

cxxopts will cause problems in several scenarios #135

zhiqwang opened this issue Jul 12, 2021 · 0 comments · Fixed by #137
Labels
bug / fix Something isn't working help wanted Extra attention is needed

Comments

@zhiqwang
Copy link
Owner

zhiqwang commented Jul 12, 2021

🐛 Bug

When I run the code from https://github.com/yasenh/libtorch-yolov5.git. the program memory is still increasing. After debugging, I find the key is that cxxopts conflict with libtorch.

When I use cxxopts in my main.cpp and load torchscript by torch::jit::load, the bug sometime appears. The program memory is still increasing quickly and finally the program was killed by the operater system, and then there are some infomation like:

Process finished with exit code 9

Then I didn't use cxxopts and use gflags, The bug disappears.

So I think there are some conflicts between libtorch and cxxopts

Originally posted by @liubamboo in yasenh/libtorch-yolov5#28 (comment)

Pitch

Let's replace to a better arguments parser method.

@zhiqwang zhiqwang added bug / fix Something isn't working help wanted Extra attention is needed labels Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant