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

Install error of YOLACT++ #769

Open
gjgjos opened this issue Jul 18, 2022 · 2 comments
Open

Install error of YOLACT++ #769

gjgjos opened this issue Jul 18, 2022 · 2 comments

Comments

@gjgjos
Copy link

gjgjos commented Jul 18, 2022

I installed YOLACT successfully. I wanted to use YOLACT++, so followed the given method.

cd external/DCNv2
python setup.py build develop

But there are errors.

running build
running build_ext
C:\ProgramData\Anaconda3\envs\tfgpu\lib\site-packages\torch\utils\cpp_extension.py:387: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
C:\ProgramData\Anaconda3\envs\tfgpu\lib\site-packages\torch\utils\cpp_extension.py:322: UserWarning: Error checking compiler version for cl: [WinError 2] The specified file could not be found
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building '_ext' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IC:\Users\HFEL\Desktop\yolact\external\DCNv2\src -IC:\ProgramData\Anaconda3\envs\tfgpu\lib\site-packages\torch\include -IC:\ProgramData\Anaconda3\envs\tfgpu\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\Anaconda3\envs\tfgpu\lib\site-packages\torch\include\TH -IC:\ProgramData\Anaconda3\envs\tfgpu\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include" -IC:\ProgramData\Anaconda3\envs\tfgpu\include -IC:\ProgramData\Anaconda3\envs\tfgpu\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /TpC:\Users\HFEL\Desktop\yolact\external\DCNv2\src\cpu\dcn_v2_cpu.cpp /Fobuild\temp.win-amd64-3.8\Release\Users\HFEL\Desktop\yolact\external\DCNv2\src\cpu\dcn_v2_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
dcn_v2_cpu.cpp
C:\ProgramData\Anaconda3\envs\tfgpu\lib\site-packages\torch\include\c10/macros/Macros.h(142): warning C4067: Unexpected token after preprocessor directive. A newline character is required.
C:\ProgramData\Anaconda3\envs\tfgpu\lib\site-packages\torch\include\c10/util/Optional.h(198): warning C4624: 'c10::constexpr_storage_t': The destructor is defined as implicitly deleted.
with
...
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include\crt/host_config.h(160): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin\nvcc.exe' failed with exit code 2


My cuda version is cuda_11.3.
torch version is 1.11.0
torchvision version is 0.12.0.

I appreciate if you solve this problem. Thank you...

@Robotatron
Copy link

If you would read your error it says. "error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported!"

@Jessica-hub
Copy link

Hi, I have the same error. Did you solve it?

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

3 participants