预备条件:
- win10安装好vs2017,配置好opencv,cuda10.2
- 下载libtorch,
- win10,libtorch,cuda10.2,debug版本,本次下载libtorch1.6版本,该版本要低于或等于pytorch的版本
- https://pytorch.org/ 将 https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.7.1.zip -> https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.6.0.zip 即可进行下载
配置过程:
1.win10环境变量path添加 E:\vspro\mysiam\libtorch-win-shared-with-deps-debug-1.6.0\libtorch\lib,加粗部分前面换成自己的路径