maskrcnn-benchmark错误:ImportError: cannot import name rnn_compat

错误:

from apex import amp
  File "build/bdist.linux-x86_64/egg/apex/__init__.py", line 5, in <module>
  File "build/bdist.linux-x86_64/egg/apex/amp/__init__.py", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/apex/amp/amp.py", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/apex/amp/rnn_compat.py", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/apex/amp/wrap.py", line 4, in <module>
ImportError: cannot import name rnn_compat

 

原因:使用了apex,可能原因是gcc编译版本不对,二是未使用python3执行命令

解决:1. 删掉apex目录下的build文件夹,重新编译

           2. 使用 python3 执行命令,因为使用anaconda2的时候python执行的是python2

上一篇:分块矩阵的性质


下一篇:some notes about《Negative eigenvalues of the hssian in deep neural networks》