RuntimeError: Couldn‘t load custom C++ ops

背景说明:

最近在做一个瑕疵检测的项目,写好代码并配置好环境之后,项目可以完美运行,也可以打包exe成功,但是运行打包后的exe程序,丢入图片进行模型处理的时候就会报错 ‘RuntimeError: Couldn't load custom C++ ops’,全部错误提示如下:

RuntimeError: Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.__version__ and your torchvision version with torchvision.__version__ and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.
 

分析:

看英文错误提示,说是pytorch和torchvision不

你可能感兴趣的:(pytorch,torchvison,C++,ops)