pspnet安裝過程中問題及解決方法

1.安裝CUDA, cudnn, opencv, matlab , caffe

2.配置pspnet, makefile.config, cudnn問題, libcaffe問題(添加opencv鏈接庫)

4. 找不到mat系列文件

…/lib/libcaffe.so.1.0.0-rc3: undefined reference to Mat_VarCreate’ …/lib/libcaffe.so.1.0.0-rc3: undefined reference toMat_CreateVer’
…/lib/libcaffe.so.1.0.0-rc3: undefined reference to Mat_VarWrite’ …/lib/libcaffe.so.1.0.0-rc3: undefined reference toMat_VarFree’
…/lib/libcaffe.so.1.0.0-rc3: undefined reference to Mat_VarReadInfo’ …/lib/libcaffe.so.1.0.0-rc3: undefined reference toMat_Close’
…/lib/libcaffe.so.1.0.0-rc3: undefined reference to Mat_VarReadDataLinear’ …/lib/libcaffe.so.1.0.0-rc3: undefined reference toMat_Open’

解決方法:https://github.com/TheLegendAli/DeepLab-Context2/issues/1

具體做法:

(1)添加以下代碼至cmake/Dependencies.cmake文件中:

find_package(MATIO REQUIRED)
include_directories(${MATIO_INCLUDE_DIR})
list(APPEND Caffe_LINKER_LIBS ${MATIO_LIBRARIES})

(2)並將findmatio.cmake文件拷貝至文件夾cmake/Modules/

findmatio文件下載路徑:https://github.com/TheLegendAli/DeepLab-Context/files/453735/FindMATIO.cmake.zip

pspnet tensorflow版本需要出現問題:
E tensorflow/stream_executor/cuda/cuda_dnn.cc:359] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERRORE tensorflow/stream_executor/cuda/cuda_dnn.cc:326] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM2018-03-12 10:55:56.078991: F tensorflow/core/kernels/conv_ops.cc:671] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms) Aborted (core dumped)

解決方法:
sudo rm -f ~/.nv/

./include/caffe/common.cuh(9): error: function “atomicAdd(double *, double)” has already been defined

1 error detected in the compilation of “/tmp/tmpxft_000038e6_00000000-17_interp.compute_61.cpp1.ii”.
Makefile:589: recipe for target ‘.build_release/cuda/src/caffe/util/interp.o’ failed
make: *** [.build_release/cuda/src/caffe/util/interp.o] Error 1
make: *** 正在等待未完成的任務…
修改common.h文件內容,cuda版本問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章