yolact++ 训练数据的报错when compiling: ‘TORCH_CHECK_ARG‘ was not declared in this scope 解决办法

用 yolact ++ 训练的时候,对于DCNv2模块,注意: 下来最新的DCNv2版本之后,需要切换到固定的版本,进入 DCNv2 目录下面进行切换 ,不然会报错 pycocotools/_mask.pyx 或者 when compiling: ‘TORCH_CHECK_ARG’ was not declared in this scope error: command ‘g++’ failed with exit status 1

DCNv2的github链接

 git checkout fa9b2fd740ced2a22e0e7e913c3bf3934fd08098

你可能感兴趣的:(DCNv2,pytorch,人工智能,python)