-
Notifications
You must be signed in to change notification settings - Fork 863
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
Default object detection handler works only on cuda:0 device in GPU machine #104
Comments
Created following issue in TorchVision : pytorch/vision#1993 |
Just answered in the torchvision issue, I was unable to reproduce the issue with the provided snippet, using pytorch and torchvision nightlies |
As indicated in this comment, a new version of PyTorch / torchvision will be released in the next following weeks. Till then the OD default handler will run on cuda:0 device only. The default handler will be updated once the fix is available in the stable release. |
Related PR has been merged hence closing this. |
Executing pre-trained FasterRCNN/MaskRCNN object detection modes using default object detection handler fails if GPU device other then
cuda:0
is used.Cuda:0 and CPU devices return similar response with minor floating point differences in the BB. However executing on different GPU devices like
cuda:1
,cuda:2
etc returns tensor/label/score for a single BB.We created following ticket on PyTorch forum and still waiting for some guidelines to address this difference in behavior in multi-GPU environment for OD
https://discuss.pytorch.org/t/pytorch-different-output-on-different-cuda-device-for-fasterrcnn-maskrcnn/71867/3
For the time being the OD default handler is hard coded to use cuda:0 device in GPU environment
The text was updated successfully, but these errors were encountered: