ThunderNet环境配置Win10

Thundernet_PytorchGITHUB

Win10环境配置注意问题:

  1. lib 编译问题
    ThunderNet环境配置Win10_第1张图片
    lib编译中出现no instance of function template “THCCeilDiv” matches
e:/AMaskRCNN/maskrcnn-benchmark/maskrcnn_benchmark/csrc/cuda/SigmoidFocalLoss_cuda.cu(120): error: no instance of function template "THCCeilDiv" matches the argument list
            argument types are: (long long, long)

e:/AMaskRCNN/maskrcnn-benchmark/maskrcnn_benchmark/csrc/cuda/SigmoidFocalLoss_cuda.cu(120): error: no instance of overloaded function "std::min" matches the argument list
            argument types are: (, long)

e:/AMaskRCNN/maskrcnn-benchmark/maskrcnn_benchmark/csrc/cuda/SigmoidFocalLoss_cuda.cu(164): error: no instance of function template "THCCeilDiv" matches the argument list
            argument types are: (long long, long)

e:/AMaskRCNN/maskrcnn-benchmark/maskrcnn_benchmark/csrc/cuda/SigmoidFocalLoss_cuda.cu(164): error: no instance of overloaded function "std::min" matches the argument list
            argument types are: (, long)

4 errors detected in the compilation of "C:/Users/ADMINI~1/AppData/Local/Temp/tmpxft_00000788_00000000-10_SigmoidFocalLoss_cuda.cpp1.ii".

参考此方案
https://blog.csdn.net/tanmx219/article/details/87827035
2. nms编译
ThunderNet环境配置Win10_第2张图片ThunderNet环境配置Win10_第3张图片

  1. PSROIAlign编译
    ThunderNet环境配置Win10_第4张图片
//extern THCState *state;    // 注释该行
THCState *state = at::globalContext().lazyInitCUDA();    // 添加该行

你可能感兴趣的:(计算机视觉)