mmdetection 2.0 安装配置 (win10)

参考 b 站安装教程

需要注意以下 bug

1. 最后一步出现问题:

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))

解决方案:
安装微软c++环境

2. 最后一步之后仍然出现问题:

编译的过程中, 运行 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

解决方案:
复制两个文件即可

3. 第一个例子出现问题:
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows
解决方案:
重新安装一下 opencv 就好了

运行效果

猜你喜欢

转载自blog.csdn.net/weixin_40042498/article/details/112852215