Skip to content
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

Training issue #414

Open
JanVin opened this issue Jan 5, 2019 · 9 comments
Open

Training issue #414

JanVin opened this issue Jan 5, 2019 · 9 comments

Comments

@JanVin
Copy link

JanVin commented Jan 5, 2019

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)

frame #56: __libc_start_main + 0xe7 (0x7fc192bcab97 in /lib/x86_64-linux-gnu/libc.so.6)

what's the problem is ?

@adityaarun1
Copy link

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

@JanVin
Copy link
Author

JanVin commented Jan 6, 2019

Yes, it's seem like is nvidia's problem. Thank you!

@qingxi2020
Copy link

I also encountered the same problem. How do you solve the problem specifically?

@9p15p
Copy link

9p15p commented Nov 9, 2019

1.install cuda和cudnn correctly (be careful about their version)
2.配置环境变量
3.delete旧的build文件夹
4.python setup.py build develop

@KimYangOfCat
Copy link

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

Hello, Can you talk about how to ensure my CUDA/CUDNN in my path? thanks~

@FlyDre
Copy link

FlyDre commented Jan 9, 2021

Hello, Can you talk about how to ensure my CUDA/CUDNN in my path? thanks~

Hello, Have you done this step? Appreciate.

@KimYangOfCat
Copy link

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

@FlyDre
Copy link

FlyDre commented Jan 9, 2021 via email

@Guosheng-Ye
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants