cannot find lopencv_xxxx:
apt-cache search opencv
sudo apt-get install yyy
一次解決煩惱?如果用的是opencv3+的話,要面臨更多痛苦。
這裏的問題應當是make之後沒有install,在sudo gedit /etc/ld.so.conf.d/opencv.conf中添加/usr/local/lib和/usr/local/lib/x86_64-linux-gnu
Check failed: fd != -1 (-1 vs. -1):
文件路徑不恰當,一般把[caffe]/當做項目根,其他文件以此做相對路徑。
Check failed: net_->num_inputs() == 1 (0 vs. 1) Network should have exactly one input:
引錯參數文件
Check failed: error == cudaSuccess (2 vs. 0) out of memory:
減小batch_size(每次迭代送入的樣本數),最好爲8的倍數
設定test_iter(測試時調入的batch數量) = TEST樣本總量/batch_size(TEST的) (進一法)
增大snapshot(每迭代xx次生成一個模型)
Check failed: error == cudaSuccess (30 vs. 0) unknown error 或 Cannot create Cublas handle:
添加sudo再執行
Check failed: error == cudaSuccess (73 vs. 0):
重運行幾次就好了,原因未知
Check failed: error == cudaSuccess (74 vs. 0):
調大max_iter,建議保持爲test_interval的倍數
Check failed: error == cudaSuccess (77 vs. 0) an illegal memory access was encountered:
nvidia-smi檢查進程,sudo kill -9 [PID],然後無sudo前綴運行一次cuda程序,再加上sudo前綴運行cuda程序。
注意prototxt中需求的空間和文件夾是否存在
Segmentation fault (core dumped) 或 malloc: memory coruption :
修改源文件,排查出錯誤的行,換用安全的方法重寫。(這一般是悲劇的開始)
corrupted size vs. prev_size:
???(悲劇達到高潮)
caffe/proto/caffe.pb.h not such file:
QT項目的.pro中 INCLUDEPATH += /home/aimhabo/caffe/build/src
或複製該文件到/home/aimhabo/caffe/src/caffe/proto
Error parsing text-format caffe.SolverParameter:
看具體報錯行號,參考 http://www.cnblogs.com/denny402/p/5074212.html 和 http://www.cnblogs.com/denny402/p/5074049.html 修正