NMS not compiled with GPU support
See original GitHub issue❓ Questions and Help
Trying to build and run the repo, and on running I am getting this runtime error:
2019-02-21 02:14:18,430 maskrcnn_benchmark.trainer INFO: Start training
Traceback (most recent call last):
File "tools/train_net.py", line 174, in <module>
main()
File "tools/train_net.py", line 167, in main
model = train(cfg, args.local_rank, args.distributed)
File "tools/train_net.py", line 73, in train
arguments,
File "/raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/engine/trainer.py", line 66, in do_train
loss_dict = model(images, targets)
File "/raid/sanjay/.conda/envs/nightly/lib/python3.6/site-packages/torch/nn/modules/module.py", line 492, in __call__
result = self.forward(*input, **kwargs)
File "/raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 50, in forward
proposals, proposal_losses = self.rpn(images, features, targets)
File "/raid/sanjay/.conda/envs/nightly/lib/python3.6/site-packages/torch/nn/modules/module.py", line 492, in __call__
result = self.forward(*input, **kwargs)
File "/raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/rpn.py", line 159, in forward
return self._forward_train(anchors, objectness, rpn_box_regression, targets)
File "/raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/rpn.py", line 175, in _forward_train
anchors, objectness, rpn_box_regression, targets
File "/raid/sanjay/.conda/envs/nightly/lib/python3.6/site-packages/torch/nn/modules/module.py", line 492, in __call__
result = self.forward(*input, **kwargs)
File "/raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/inference.py", line 138, in forward
sampled_boxes.append(self.forward_for_single_feature_map(a, o, b))
File "/raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/modeling/rpn/inference.py", line 118, in forward_for_single_feature_map
score_field="objectness",
File "/raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/structures/boxlist_ops.py", line 27, in boxlist_nms
keep = _box_nms(boxes, score, nms_thresh)
RuntimeError: Not compiled with GPU support (nms at /raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/csrc/nms.h:22)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x45 (0x7fd5399b58b5 in /raid/sanjay/.conda/envs/nightly/lib/python3.6/site-packages/torch/lib/libc10.so)
frame #1: nms(at::Tensor const&, at::Tensor const&, float) + 0xd4 (0x7fd52d3313a4 in /raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-36m-x86_64-linux-gnu.so)
frame #2: <unknown function> + 0x14ebf (0x7fd52d33debf in /raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-36m-x86_64-linux-gnu.so)
frame #3: <unknown function> + 0x11d55 (0x7fd52d33ad55 in /raid/sanjay/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-36m-x86_64-linux-gnu.so)
<omitting python frames>
I am using nightly pytorch build (installed with conda install -c pytorch pytorch-nightly cuda92
). I downloaded both the nightly pytorch build and the maskrcnn repo today (2/21).
Current versions are:
$ python -c "import torch; print(torch.__version__); print(torch.version.cuda)"
1.0.0.dev20190201
9.0.176
$ conda list | grep torch
cuda92 1.0 0 pytorch
libtorch 0.1.12 nomkl_0
pytorch-ignite 0.1.2 <pip>
pytorch-nightly 1.0.0.dev20190201 py3.6_cuda9.0.176_cudnn7.4.1_0 pytorch
torch 1.0.1.post2 <pip>
torchvision-nightly 0.2.1 <pip>
maskrcnn version:
$ git log -1
commit b23eee0cb72af70f4e4a72e73537f0884cfd1cff
Author: Stzpz <stzpz@fb.com>
Date: Wed Feb 20 07:47:10 2019 -0800
Supported FBNet architecture. (#463)
I have seen other closed issues re: this problem and I have tried to follow the solutions in those issues but am still experiencing this error. I would appreciate any help on this. Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
RuntimeError: nms is not compiled with GPU support #2686
I met the RuntimeError: nms is not compiled with GPU support. I used the command ''python ./tools/train.py .
Read more >RuntimeError: Not compiled with GPU support - Stack Overflow
I'm trying to run a code and I got the error: RuntimeError: Not compiled with GPU support.
Read more >Frequently Asked Questions — mmcv 1.7.0 documentation
“RuntimeError : nms is not compiled with GPU support”. This error is because your CUDA environment is not installed correctly. You may try...
Read more >RuntimeError: nms is not compiled with GPU support
报错:**RuntimeError: nms is not compiled with GPU support**未解决,求助.
Read more >add ext ops, support parrots (#310) · c0f5492ee9 - MMCV
mmcv/ops/csrc/pytorch/nms.cpp ... from .nms import batched_nms, nms, nms_match, soft_nms ... AT_ERROR("bbox_overlaps is not compiled with GPU support");.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Could you please tell what is the output of
python -c "import torch;from torch.utils.cpp_extension import CUDA_HOME;print(CUDA_HOME);print(torch.cuda.is_available())"
?It should be something like :
/usr/local/cuda
True
Thanks @sanjmohan I’m getting the same error even after setting CUDA_VISIBLE_DEVICES flag. Also, even $ python -c “import torch; print(torch.cuda.is_available())” is returning True for me. Can you please help me with this?