-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
rcnn on windows #913
Comments
@sctrueew , Hi any update on this issue? I am also facing same issue. LNK1181 cannot open input file 'Release\myplugins.lib' rcnn Thanks |
@freedenS . Hi can you please tell what are the steps to make and build RCNN in windows. I am trying to make using Cmake and build using visual studio 2019. |
I made the changes - #521 (comment) for cuda 11.1. |
Hi, Seems like most of the issues are associated with C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\include\cub\device\dispatch\dispatch_radix_sort.cuh . Some of the issues are as below.
Do I need to add any additional libraries? Please advise. |
E0864 DeviceRadixSortPolicy is not a template myplugins C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\include\cub\device\dispatch\dispatch_radix_sort.cuh 824 |
@rgkannan676 Hi, I couldn't build it. I got this error TensorRt: 7.2 |
Hi @freedenS , Is it possible to build in windows? Can you please confirm? Thank you. |
to build rcnn in windows:
|
if you use cuda 10.2, you should assure it is updated. NVIDIA/TensorRT#1151 |
Hi @freedenS , Thank you for the reply. This resolved my issues and was able to build the .exe file. |
@rgkannan676 Hi, I created a empty project and all .hpp .cpp .cu
I added --extended-lambda to the Additional options but I get this errors Could you please some help? |
Try to add the libraries. Linker -> All Options -> Additional Dependencies. Add the following libraries.
|
Have you converted .cu files Item Type as "CUDA C/C++" ? You can see this option in the "Properties" of the files. |
Also have you added CUDA 11.2 as dependency? Build Dependencies -> Build Customizations and select CUDA 11.2 |
once you add CUDA 11.2 dependency, "--extended-lambda " need to be added to CUDA C/C++ -> Command Line -> Additional Options. |
and have opencv_world454.lib but it wan't solved |
@rgkannan676 Have you any idea? |
Have you set
|
and also I have changed #521 (comment) |
above are the changes I made. One more thing, Have you checked 'CUDA_PATH' in Environment Variables? Is it pointing to 11.2? If not, set it to 11.2 and restart. |
I've set everything up, but I don't know what the problem is? |
@rgkannan676 |
could you show your compiling log? |
I've added the log. |
Hi @sctrueew , Sorry, not able to share project due to privacy issue. One more check, have you set the Item Type property? |
No problem, yes I checked again and the Item type was set for all *.cu files |
1>D:\Projects\yolov5\tensorrtx\rcnn\MaskRcnnInferencePlugin.h(37): error : expected a ";" |
I've cloned again and built it. |
FYI, I created a new solution -> new project-> copied all .cpp, .h, .cu files in the git repo to new project folder and added it to project. Replaced the contents in the main function with rcnn.cpp, along with the changes mentioned above. |
you'd better use trt7, such as 7.2.1 described in README, it looks like trt8 has changed that api. i'm not sure. |
@freedenS @rgkannan676 Thank you for the tips, finally, I've built it with Tr 7.2.3 |
@freedenS Hi, I've trained a model with
but I'm facing this error when I run rcnn -s faster.wts faster.engine m:
|
what's the size of faster.wts? |
faster.wts size is ~390 mb I'm using mask_rcnn_R_50_FPN_3x. Does it support FPN? or I should use C4? |
it doesn't support FPN, you can only use C4 |
Hi @freedenS , One more doubt, can you please tell how to change the image height and width . I have an image of shape 600x875. And I change the IMAGE_HEIGHT, IMAGE_WIDTH accordingly. But still the output is of dimension INPUT_H = 480x INPUT_W = 640; Can you please suggest what need to be changed? I tried changing INPUT_H and INPUT_W but it doesn't give any bbox detections. Can you please advise. Thank you. |
Hi,
I have a problem with the building of rcnn (detectron2) on Windows. I get an error:
Error LNK1181 cannot open input file 'Release\myplugins.lib' rcnn \tensorrtx\rcnn\b\LINK 1
Myplugins.lib isn't in the path, but it built successfully
OpenCV: 4.5.4
TensorRT: TensorRT-7.2.3.4
CUDA: 11.2
The text was updated successfully, but these errors were encountered: