1

我正在尝试安装Facebook 的 Detectron,所以我需要安装 Caffe2。我遵循了这个指示


git clone https://github.com/pytorch/pytorch.git && cd pytorch git submodule update --init --recursive
基本上,当我运行以下命令时,我使用和克隆 PyTorch 存储库 python setup.py install

它达到 84-86%,我得到这个错误。

[ 84%] Built target roi_align_op_gpu_test
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
  File "setup.py", line 756, in <module>
    build_deps()
  File "setup.py", line 321, in build_deps
    cmake=cmake)
  File "/home/milos/pytorch/tools/build_pytorch_libs.py", line 63, in build_caffe2
    cmake.build(my_env)
  File "/home/milos/pytorch/tools/setup_helpers/cmake.py", line 330, in build
    self.run(build_args, my_env)
  File "/home/milos/pytorch/tools/setup_helpers/cmake.py", line 143, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '12']' returned non-zero exit status 2
Segmentation fault (core dumped)

系统信息:

Ubuntu 18.04 LTS (Bionic Beaver)
Python 3.6.8 和 Python 2.7.15
OpenCV 3.4.0 两个 Python 版本
CUDA 10.2 (Nvidia 430.26)

我以前设法让这个工作,但不记得如何。

4

0 回答 0