You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been attempting to install the code to perform some segmentation on some images we have as part of another project which uses pytorch and we hope to keep the code base consistent.
However, we are running into some issues with regards to installation.
Specifically we are struggling with the section:
cd nms/src/cuda/
nvcc -c -o nms_kernel.cu.o nms_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]
cd ../../
python build.py
cd ../
cd roialign/roi_align/src/cuda/
nvcc -c -o crop_and_resize_kernel.cu.o crop_and_resize_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]
cd ../../
python build.py
cd ../../
We have the correct arch and our cl.exe has been added to the file path. However, we encounter the errors:
The -fPIC is the compile option of the gcc compiler. But the compiler you are using is cl.exe, since you are using the Visual Studio.
The cl.exe does not have the compile option -fPIC. So I think you need change the compiler to gcc, or find similar compile option of -fPIC (position-independent code) in cl.exe. But I think the best way is switching the environment to Linux.
If you can figure this out on Windows, please tell me, thank you.
Hello All,
I've been attempting to install the code to perform some segmentation on some images we have as part of another project which uses pytorch and we hope to keep the code base consistent.
However, we are running into some issues with regards to installation.
Specifically we are struggling with the section:
We have the correct
arch
and ourcl.exe
has been added to the file path. However, we encounter the errors:when attempting to run:
F:\Code\pytorch-mask-rcnn\nms\src\cuda>nvcc -c -o nms_kernel.cu.o nms_kernel.cu -x cu -Xcompiler -fPIC -arch=sm_61
We are using Windows 10 as our os with Visual Studio 2017.
Many Thanks in advance for any advice available.
The text was updated successfully, but these errors were encountered: