CPU环境配置
https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.5.0%2Bcpu.zip
包含目录
C:\libtorch-win-shared-with-deps-1.5.0+cpu\libtorch\include
C:\libtorch-win-shared-with-deps-1.5.0+cpu\libtorch\include\torch\csrc\api\include
库目录
C:\libtorch-win-shared-with-deps-1.5.0+cpu\libtorch\lib
链接器->输入
asmjit.lib
c10.lib
caffe2_detectron_ops.lib
caffe2_module_test_dynamic.lib
clog.lib
cpuinfo.lib
fbgemm.lib
libprotobuf.lib
libprotobuf-lite.lib
libprotoc.lib
mkldnn.lib
torch.lib
torch_cpu.lib
GPU环境配置
https://download.pytorch.org/libtorch/cu101/libtorch-win-shared-with-deps-1.5.0.zip
包含目录
C:\libtorch-win-shared-with-deps-1.5.0\libtorch\include
C:\libtorch-win-shared-with-deps-1.5.0\libtorch\include\torch\csrc\api\include
库目录
C:\libtorch-win-shared-with-deps-1.5.0\libtorch\lib
链接器->输入
asmjit.lib
c10.lib
c10_cuda.lib
caffe2_detectron_ops_gpu.lib
caffe2_module_test_dynamic.lib
caffe2_nvrtc.lib
clog.lib
cpuinfo.lib
fbgemm.lib
libprotobuf.lib
libprotobuf-lite.lib
libprotoc.lib
mkldnn.lib
torch.lib
torch_cpu.lib
torch_cuda.lib
OpenCV环境配置
包含目录:
D:\opencv-3.4.1-vc14_vc15\opencv\build\include
D:\opencv-3.4.1-vc14_vc15\opencv\build\include\opencv
D:\opencv-3.4.1-vc14_vc15\opencv\build\include\opencv2
库目录:
D:\opencv-3.4.1-vc14_vc15\opencv\build\x64\vc14\lib
链接器->输入:
opencv_world341.lib
opencv_world341d.lib