在测试编译FOTS 的时候,出现如下错误:
1 2 3 4 5 6 7 8 |
(FOTS) $~/Source/FOTS.PyTorch$ bash build.sh Compiling crop_and_resize kernels by nvcc... Traceback (most recent call last): File "build.py", line 3, in <module> from torch.utils.ffi import create_extension File "~/.conda/envs/FOTS/lib/python2.7/site-packages/torch/utils/ffi/__init__.py", line 1, in <module> raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.") ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead. |
最省事的情况是降级pytorch
版本到0.4
,强烈建议使用Anaconda
创建独立的Python
开发环境,然后在干净的环境中运行。