Open JanVin opened 5 years ago
RuntimeError: Not compiled with GPU support (nms at /home/janvin/faster-rcnn.pytorch/lib/model/csrc/nms.h:22)
NMS seems to be compiled without GPU. Try removing the build
directory and recompiling. Ensure you have CUDA/CuDNN in your path, and check for errors when running python setup.py build develop
Yes, it's seem like is nvidia's problem. Thank you!
I also encountered the same problem. How do you solve the problem specifically?
1.install cuda和cudnn correctly (be careful about their version) 2.配置环境变量 3.delete旧的build文件夹 4.python setup.py build develop
RuntimeError: Not compiled with GPU support (nms at /home/janvin/faster-rcnn.pytorch/lib/model/csrc/nms.h:22)
NMS seems to be compiled without GPU. Try removing the
build
directory and recompiling. Ensure you have CUDA/CuDNN in your path, and check for errors when runningpython setup.py build develop
Hello, Can you talk about how to ensure my CUDA/CUDNN in my path? thanks~
Hello, Can you talk about how to ensure my CUDA/CUDNN in my path? thanks~
Hello, Have you done this step? Appreciate.
Hello, Can you talk about how to ensure my CUDA/CUDNN in my path? thanks~
Hello, Have you done this step? Appreciate.
Sorry, it's a long time ago, I forget My steps. And I remember I didn't fix this problem
I‘ve done it.Thanks for reply anyway
发自我的iPhone
------------------ Original ------------------ From: Kim Yang <notifications@github.com> Date: Sun,Jan 10,2021 0:26 AM To: jwyang/faster-rcnn.pytorch <faster-rcnn.pytorch@noreply.github.com> Cc: Lyz <3160103077@zju.edu.cn>, Comment <comment@noreply.github.com> Subject: Re: [jwyang/faster-rcnn.pytorch] Training issue (#414)
Hello, Can you talk about how to ensure my CUDA/CUDNN in my path? thanks~
Hello, Have you done this step? Appreciate.
Sorry, it's a long time ago, I forget My steps. And I remember I didn't fix this problem
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
1.install cuda和cudnn correctly (be careful about their version) 2.配置环境变量 3.delete旧的build文件夹 4.python setup.py build develop
I‘ve solved it. Thank you very much
Preparing training data... done before filtering, there are 10022 images... after filtering, there are 10022 images... 10022 roidb entries Loading pretrained weights from data/pretrained_model/vgg16_caffe.pth Traceback (most recent call last): File "trainval_net.py", line 320, in
rois_label = fasterRCNN(im_data, im_info, gt_boxes, num_boxes)
File "/home/janvin/anaconda3/envs/python36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, kwargs)
File "/home/janvin/faster-rcnn.pytorch/lib/model/faster_rcnn/faster_rcnn.py", line 54, in forward
rois, rpn_loss_cls, rpn_loss_bbox = self.RCNN_rpn(base_feat, im_info, gt_boxes, num_boxes)
File "/home/janvin/anaconda3/envs/python36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, *kwargs)
File "/home/janvin/faster-rcnn.pytorch/lib/model/rpn/rpn.py", line 78, in forward
im_info, cfg_key))
File "/home/janvin/anaconda3/envs/python36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(input, kwargs)
File "/home/janvin/faster-rcnn.pytorch/lib/model/rpn/proposal_layer.py", line 147, in forward
keep_idx_i = nms(proposals_single, scores_single.squeeze(1), nms_thresh)
RuntimeError: Not compiled with GPU support (nms at /home/janvin/faster-rcnn.pytorch/lib/model/csrc/nms.h:22)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x45 (0x7fc141178cc5 in /home/janvin/anaconda3/envs/python36/lib/python3.6/site-packages/torch/lib/libc10.so)
frame #1: nms(at::Tensor const&, at::Tensor const&, float) + 0xdc (0x7fc13ceae48c in /home/janvin/faster-rcnn.pytorch/lib/model/_C.cpython-36m-x86_64-linux-gnu.so)
frame #2: + 0x148e8 (0x7fc13ceba8e8 in /home/janvin/faster-rcnn.pytorch/lib/model/_C.cpython-36m-x86_64-linux-gnu.so)
frame #3: + 0x11f35 (0x7fc13ceb7f35 in /home/janvin/faster-rcnn.pytorch/lib/model/_C.cpython-36m-x86_64-linux-gnu.so)