我正在尝试安装DensePose但在执行时遇到问题make ops
。
首先我得到错误Caffe2Config.cmake
未找到,但是按照这里的说明Caffe2 build from source最终Caffe2Config.cmake
在build
目录下。
将路径添加到build
文件夹会出现以下错误:
CMake Error at /home/erikbylow/Code/LocalLibs/pytorch/build/Caffe2Config.cmake:14 (include):
include could not find load file:
/home/erikbylow/Code/LocalLibs/pytorch/build/public/utils.cmake
Call Stack (most recent call first):
CMakeLists.txt:8 (find_package)
CMake Error at /home/erikbylow/Code/LocalLibs/pytorch/build/Caffe2Config.cmake:17 (include):
include could not find load file:
/home/erikbylow/Code/LocalLibs/pytorch/build/public/threads.cmake
Call Stack (most recent call first):
CMakeLists.txt:8 (find_package)
CMake Error at /home/erikbylow/Code/LocalLibs/pytorch/build/Caffe2Config.cmake:88 (include):
include could not find load file:
/home/erikbylow/Code/LocalLibs/pytorch/build/public/cuda.cmake
Call Stack (most recent call first):
CMakeLists.txt:8 (find_package)
路径显然是错误的,因为请求的cmake-
文件位于pytorch/cmake/public
而不是pytorch/build/public
.
怎么解决呢?我刚刚按照说明进行了操作,并且在此过程中进行了测试。好像是安装Caffe2
那个导致的问题?