mmdetection 2.0 installation configuration (win10)

Refer to the installation tutorial of station b

Need to pay attention to the following bugs

1. There is a problem in the last step:

D:\Program Files\Anaconda\envs\mmdet2\lib\sitepackages\torch\utils\cpp_extension.py:191: UserWarning: Error checking compiler version for cl: 【WinError 2】 系统找不到指定的文件。
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))

Solution:
Install Microsoft C++ Environment

2. The problem still occurs after the last step:

编译的过程中, 运行 python setup.py develop
跳出了很多代码, 最后报错
Generating code                                                                                                                                                                              Finished generating code                                                                                                                                                                     LINK : fatal error LNK1158: cannot run 'rc.exe'  
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1158

Solution:
just copy two files

3. There is a problem with the first example:
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows
Solution:
Just reinstall opencv

running result

Guess you like

Origin blog.csdn.net/weixin_40042498/article/details/112852215