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

How to install the Sparse R-CNN(it seems amusing)? #97

Open
xiaomin0416 opened this issue Oct 4, 2021 · 1 comment
Open

How to install the Sparse R-CNN(it seems amusing)? #97

xiaomin0416 opened this issue Oct 4, 2021 · 1 comment

Comments

@xiaomin0416
Copy link

I want to install Sparse R-CNN, but I was troubled by the 3th code, which is

git clone https://github.com/PeizeSun/SparseR-CNN.git
cd SparseR-CNN
python setup.py build develop

And i got this

running build
running build_py
running build_ext
----windows operation system
C:\Miniconda3\envs\py3.6\lib\site-packages\torch\utils\cpp_extension.py:279: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
  warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'detectron2._C' extension
----windows operation system
Emitting ninja build file D:\xm_Project\PythonProject\SparseR-CNN-main\build\temp.win-amd64-3.6\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.2
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MA
NIFESTUAC:NO /LIBPATH:C:\Miniconda3\envs\py3.6\lib\site-packages\torch\lib /LIBPATH:C:\Miniconda3\envs\py3.6\libs /LIBPATH:C:\Miniconda3\
envs\py3.6\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Win
dows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" c10.lib torch.lib torch_cpu
.lib torch_python.lib /EXPORT:PyInit__C D:\xm_Project\PythonProject\SparseR-CNN-main\build\temp.win-amd64-3.6\Release\xm_Project\PythonPr
oject\SparseR-CNN-main\detectron2\layers\csrc\vision.obj D:\xm_Project\PythonProject\SparseR-CNN-main\build\temp.win-amd64-3.6\Release\xm
_Project\PythonProject\SparseR-CNN-main\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cpu.obj D:\xm_Project\PythonProject\Sparse
R-CNN-main\build\temp.win-amd64-3.6\Release\xm_Project\PythonProject\SparseR-CNN-main\detectron2\layers\csrc\cocoeval\cocoeval.obj D:\xm_
Project\PythonProject\SparseR-CNN-main\build\temp.win-amd64-3.6\Release\xm_Project\PythonProject\SparseR-CNN-main\detectron2\layers\csrc\
nms_rotated\nms_rotated_cpu.obj D:\xm_Project\PythonProject\SparseR-CNN-main\build\temp.win-amd64-3.6\Release\xm_Project\PythonProject\Sp
arseR-CNN-main\detectron2\layers\csrc\ROIAlign\ROIAlign_cpu.obj D:\xm_Project\PythonProject\SparseR-CNN-main\build\temp.win-amd64-3.6\Rel
ease\xm_Project\PythonProject\SparseR-CNN-main\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cpu.obj /OUT:build\lib.win-amd64-3.
6\detectron2\_C.cp36-win_amd64.pyd /IMPLIB:D:\xm_Project\PythonProject\SparseR-CNN-main\build\temp.win-amd64-3.6\Release\xm_Project\Pytho
nProject\SparseR-CNN-main\detectron2\layers\csrc\_C.cp36-win_amd64.lib
LINK : fatal error LNK1181: cannot open input file 'D:\xm_Project\PythonProject\SparseR-CNN-main\build\temp.win-amd64-3.6\Release\xm_Proj
ect\PythonProject\SparseR-CNN-main\detectron2\layers\csrc\vision.obj'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1181

I have Visual C++ 2015 Build Tools、PyTorch1.7.0、python3.6.13 installed on windows 10.
This is part of my "cpp_extension.py"
image

I tried many ways, but i still didn't solve the problem.Although this question may be a little silly, can you help me?
Thank you.

@PeizeSun
Copy link
Owner

PeizeSun commented Dec 9, 2021

Hi~
It seems you are installing on Windows OS. Unluckily, our code doesn't support Windows OS.

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

2 participants