我正在使用来自 caffe2 的 Detectron,但在运行之后
python2 tests/test_spatial_narrow_as_op.py
我收到以下错误:
没有名为 c2 的模块
我已经检查过了lib/utils,它有c2.py。我还将Detectron/lib文件夹添加到~/.bashrc.
什么会导致此错误?
我正在使用来自 caffe2 的 Detectron,但在运行之后
python2 tests/test_spatial_narrow_as_op.py
我收到以下错误:
没有名为 c2 的模块
我已经检查过了lib/utils,它有c2.py。我还将Detectron/lib文件夹添加到~/.bashrc.
什么会导致此错误?
检查:https ://github.com/facebookresearch/Detectron/issues/78
您必须包含detectron/lib在您的 pythonpath 中。