-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Support for torchvision.ops.nms on pytorch mobile #2581
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
Comments
Assigning this to @dreiss for comments |
Same issue in pytorch1.6.0 / torchvision 0.7.0. Since nms is a widely used op in detection, this may be an urgent problem:) |
FYI we are actively working on getting this working on mobile for the next major release. |
@fmassa Any updates regarding this? Scripting a model that uses torchvision nms using pytorch 1.7.1 and torchvision 0.8.2 and running on iOS with Libtorch 1.7.1 still produces the same error. Is there any update or relevant PR/ticket we can look at to keep track of the progress? |
I think that #2897 is aimed to resolve this problem. |
#2897 appears to track the torchvision ops for android. Is there one that tracks something similar for iOS as well? |
Oops... I don't know either. |
@HasnainRaz we will also be looking into iOS for next release. We currently don't have an open PR for it yet though. |
iOS is supported as of #3582, and Android support has been added in the 0.9.0 release |
@fmassa, I've tested with compiling libtorch from source and with latest version from cocoapods, but still can't find torchvision::nms in iOS app. Am I missing some step? |
@mzkaramat please check #3629 for an end to end example on how to build an iOS app which leverages |
Thanks! |
Thank you for a solution. But binaries from amazon is not available for x86_64 or even arm64. |
@elb3k we will be uploading the stable binaries in the next release. In the mean time, you can get the nightlies from
|
Thank you. I ended up compiling torchvision with |
Hi, We have some information on how to compile manually in https://github.com/pytorch/vision/blob/master/.circleci/unittest/ios/scripts/binary_ios_build.sh and https://github.com/pytorch/vision/blob/master/ios/build_ios.sh, let us know if further information is required |
Hi, these were useful to create |
❓ Questions and Help
You can't deploy object detection models like yolo, FastRCNN, etc without nms op. There are several issues in the forum. https://discuss.pytorch.org/t/support-torchvision-ops-nms-on-mobile-cpu/69627 or in this repo #2050 .
So, there is any eta for this? I want to use YoloV5 to detect objects with a smartphone. I have read the code and it seems to have a fairly straight forward implementation. So, I don't know why Pytorch Mobile can't find this operator.
The text was updated successfully, but these errors were encountered: