-
Notifications
You must be signed in to change notification settings - Fork 152
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
Create standalone application without python, c++ only, on windows 10 #99
Comments
Hi @stereomatchingkiss , The main (and seems to be the only) ops we are using from torchvision is the |
BTW, I think that you could try pytorch 1.8.1 (with libtorch 1.8.1 and torchvision 0.9.1 are attached), the interfaces are refactored, maybe it could get rid of python's dependency. You could check this Removing python headers and Win32 Python2 inits in C++ for more details. UPDATE: there is an issue in |
Could you tell me where do you apply the nms? I would like to try to export the functions without this function. As a application developers, it would be nice to create a standalone app by libtorch/onnx only. I believe many application developers would like to have an option to move out the dependencies of the torchvision, we can use the nms functions of opencv instead. Thanks. |
That's a more prctical idea! However, the BTW, did you try yasenh's libtorch-yolov5, actually they are using the opencv's NMS. |
Yap, tried, and work. Biggest advantages of this project, is it use script but not trace, this could save us a lot of memory. If I figure out how to separate it out and export the model successful, will open a pull request. It is quite painful to build torchivision on different platforms, I like c++, but it is really a big pain to build those libraries on different platforms, almost everyone have their own issues to solve. |
We welcome for this feature, and I can help to separete the |
Hi @stereomatchingkiss , Because we now have support for Windows C++ with ONNX Runtime and TensorRT. I believe this issue can be resolved with these two ways, and as such I'm closing this issue but let us know if you have further questions. Context |
os : win10 64bits
libtorch: 1.7.1 cuda10.2
Could I create standalone application by this project? According to the deployment tutorial, I need to build the torchvision v0.8, else the model cannot be loaded. According to this post, Using torchvision C++ API without installing python, we still need to install python on the local machine if we want to use torchvision from c++. Thanks
The text was updated successfully, but these errors were encountered: