ActionDetection-AFSD icon indicating copy to clipboard operation
ActionDetection-AFSD copied to clipboard

An error and a warning when run setup.py

Open yangjiangeyjg opened this issue 3 years ago • 6 comments

UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2 @linchuming

yangjiangeyjg avatar Sep 17 '21 07:09 yangjiangeyjg

@yangjiangeyjg, thanks for your interest. Because we need to compile our boundary pooling operation in setup.py, C++ compiler is necessary. According your error information, you should install Visual Studio 15 or higher version in Windows OS. I recommend that the environment of Linux OS + NVIDIA GPU is easier to setup our AFSD.

linchuming avatar Sep 17 '21 07:09 linchuming

@yangjiangeyjg, thanks for your interest. Because we need to compile our boundary pooling operation in setup.py, C++ compiler is necessary. According your error information, you should install Visual Studio 15 or higher version in Windows OS. I recommend that the environment of Linux OS + NVIDIA GPU is easier to setup our AFSD. Thanks, my VS's version is 14. @linchuming

yangjiangeyjg avatar Sep 17 '21 07:09 yangjiangeyjg

@yangjiangeyjg, thanks for your interest. Because we need to compile our boundary pooling operation in setup.py, C++ compiler is necessary. According your error information, you should install Visual Studio 15 or higher version in Windows OS. I recommend that the environment of Linux OS + NVIDIA GPU

There are still errors here. Can I compile it under Windows OS?@linchuming

  • D:\D2\anaconda\conda\envs\AFSD\lib\site-packages\torch\utils\cpp_extension.py:209:UserWarning: Error checking compiler version for cl: Command 'cl' returned non-zero exit status 3221225781. warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
  • D:\D2\anaconda\conda\envs\AFSD\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(624): note: see reference to class template instantiation 'c10::ArrayRefc10::IValue' being compiled error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

yangjiangeyjg avatar Sep 17 '21 08:09 yangjiangeyjg

@yangjiangeyjg I didn't try to compile AFSD in Windows and I am sorry for your problem because of lacking relevant experience.

linchuming avatar Sep 23 '21 02:09 linchuming

There is a question I want to consult with the author. What are the versions of CUDA and cuDNN used for compilation?

louishao avatar Nov 02 '21 03:11 louishao

Can this code work with torch>1.7.0? The reason is that my CUDA version is 11, which may not work with torch 1.4. I have tried to run setup.py but failed, I don't know if torch version is the main cause. My torch vision is 1.7.1.

wenzhengzeng avatar Apr 30 '22 12:04 wenzhengzeng