Caffe - yszheda/wiki GitHub Wiki
Installation
- http://caffe.berkeleyvision.org/installation.html
- Caffe + Ubuntu 14.04 64bit + CUDA 6.5 配置说明
- Ubuntu 16.04 安装配置Caffe 图文详解
Extract weight
- Extract weights of network in caffe
- https://pastebin.com/nAGEV9EK
- Extracting weights from .caffemodel without caffe installed in Python
pycaffe
mini caffe
MemPool
Performance
multi-gpu
multi-thread
multi CUDA Stream
- Use CUDA 7's per-thread default stream, with automatic syncing #2077
- Synchronous SGD via layer-wise parallelism #2219
log
GLOG_minloglevel
- Setting GLOG_minloglevel=1 to prevent output in shell from Caffe
- Monitor training/validation process in Caffe
- 【神经网络与深度学习】【C/C++】C++日志操作开源函数库之Google-glog
- Google glog rolling files
- How To Use Google Logging Library (glog)
google protobuf
from google import protobuf ImportError: No module named google
- https://github.com/googlesamples/assistant-sdk-python/issues/8
- https://github.com/tensorflow/tensorflow/issues/6341
Trouble-shooting
cv::imread
...
[Build] undefined reference to make clean
ldconfig
make
- https://stackoverflow.com/questions/7816607/opencv-2-3-compiling-issue-undefined-refence-ubuntu-11-10
- https://github.com/BVLC/caffe/issues/3700
- http://answers.opencv.org/question/5498/undefined-reference-to-cvimreadstdstring-const-int/
[Build] make: protoc: Command not found
[Build] can't find hdf5.h
Makefile.config
:
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
Makefile:
--- LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
+++ LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial
[Build] This program requires version 3.4.0 of the Protocol Buffer runtime library, but the installed version is 2.5.0. Please update your library.
源码编译protobuf
- https://stackoverflow.com/questions/31307181/installation-issue-with-protobuf-and-caffe
- This program requires version 3.3.0 of the Protocol Buffer runtime library
- Protobuf 3.0.0 beta4 support
[Build] Python
ImportError: No module named skimage.io
- make pycaffe error #50
- ImportError: No module named skimage.io #5716
- ImportError: No module named skimage.io #13
libdc1394 error: Failed to initialize libdc1394
sudo ln /dev/null /dev/raw1394
- ctypes error: libdc1394 error: Failed to initialize libdc1394
- OpenCV: libdc1394 error: Failed to initialize libdc1394
cannot find -lopenblas
Check failed: status == CUDNN_STATUS_SUCCESS (8 vs. 0) CUDNN_STATUS_EXECUTION_FAILED
Program hit cudaErrorCudartUnloading (error 29) due to "driver shutting down" on CUDA API call to cudaFree.
CUDA: invalid device ordinal
gpu-0
- I set device id not 0, but caffe always use gpu0 #6042
- CUDA Pro Tip: Control GPU Visibility with CUDA_VISIBLE_DEVICES
- would the instance of caffe running on gpu 1 with pythonlayer always take some memory of gpu 0? #5983
- GPU 0 is also used when running on other GPUs (#440 reocurred?) #2186
- GPU Memory Usage for Multiple GPUS #1399
classification.o: undefined reference to symbol '_ZN2cv6imreadERKNS_6StringEi'
- USE OpenCV 3
static library
Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Input (known types: )
-Wl,--whole-archive libcaffe.a -Wl,--no-whole-archive
- C++ global variable not initialized when linked through static libraries, but OK when compiled with source
- How to solve Unknown layer type in Caffe IOS.?
CMake
- C/cmake - how to add a linker flag to an (unused) library when the library is specified in TARGET_LINK_LIBRARIES?
- specifying link flags for only one static lib while linking executable