All Projects → gcucurull → caffe-conf-matrix

gcucurull / caffe-conf-matrix

Licence: other
Python layer for the Caffe deep learning framework to compute the accuracy and the confusion matrix.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to caffe-conf-matrix

Dsrg
Weakly-Supervised Semantic Segmentation Network with Deep Seeded Region Growing (CVPR 2018).
Stars: ✭ 206 (+930%)
Mutual labels:  caffe
Dgd person reid
Domain Guided Dropout for Person Re-identification
Stars: ✭ 229 (+1045%)
Mutual labels:  caffe
Senet
Squeeze-and-Excitation Networks
Stars: ✭ 2,850 (+14150%)
Mutual labels:  caffe
Orn
Oriented Response Networks, in CVPR 2017
Stars: ✭ 207 (+935%)
Mutual labels:  caffe
Ide Baseline Market 1501
ID-discriminative Embedding (IDE) for Person Re-identification
Stars: ✭ 220 (+1000%)
Mutual labels:  caffe
Colorization
Automatic colorization using deep neural networks. "Colorful Image Colorization." In ECCV, 2016.
Stars: ✭ 2,791 (+13855%)
Mutual labels:  caffe
Raspberrypi Facedetection Mtcnn Caffe With Motion
MTCNN with Motion Detection, on Raspberry Pi with Love
Stars: ✭ 204 (+920%)
Mutual labels:  caffe
Cgnl Network.pytorch
Compact Generalized Non-local Network (NIPS 2018)
Stars: ✭ 252 (+1160%)
Mutual labels:  caffe
Caffe2 Ios
Caffe2 on iOS Real-time Demo. Test with Your Own Model and Photos.
Stars: ✭ 221 (+1005%)
Mutual labels:  caffe
Cnnforandroid
The Convolutional Neural Network(CNN) for Android
Stars: ✭ 245 (+1125%)
Mutual labels:  caffe
Interactive Deep Colorization
Deep learning software for colorizing black and white images with a few clicks.
Stars: ✭ 2,465 (+12225%)
Mutual labels:  caffe
Caffe Yolov3 Windows
A windows caffe implementation of YOLO detection network
Stars: ✭ 210 (+950%)
Mutual labels:  caffe
Retinaface
Reimplement RetinaFace use C++ and TensorRT
Stars: ✭ 241 (+1105%)
Mutual labels:  caffe
Caffe Deepbinarycode
Supervised Semantics-preserving Deep Hashing (TPAMI18)
Stars: ✭ 206 (+930%)
Mutual labels:  caffe
Cnn face detection
Implementation based on the paper Li et al., “A Convolutional Neural Network Cascade for Face Detection, ” 2015 CVPR
Stars: ✭ 251 (+1155%)
Mutual labels:  caffe
Netron
Visualizer for neural network, deep learning, and machine learning models
Stars: ✭ 17,193 (+85865%)
Mutual labels:  caffe
Skimcaffe
Caffe for Sparse Convolutional Neural Network
Stars: ✭ 230 (+1050%)
Mutual labels:  caffe
List-CoreML-Models
A Big Awesome List CoreML Models.
Stars: ✭ 120 (+500%)
Mutual labels:  caffe
Change Detection Review
A review of change detection methods, including codes and open data sets for deep learning. From paper: change detection based on artificial intelligence: state-of-the-art and challenges.
Stars: ✭ 248 (+1140%)
Mutual labels:  caffe
Mtcnn caffe
Simple implementation of kpzhang93's paper from Matlab to c++, and don't change models.
Stars: ✭ 244 (+1120%)
Mutual labels:  caffe

caffe-conf-matrix

Python layer for the Caffe deep learning framework to compute the accuracy and the confusion matrix. This layer will print a confusion matrix of the TEST predictions after the whole TEST images have been processed. It will also work as an accuracy layer, providing Caffe with the predictions accuracy on the TEST set.

The usage is very simple, the layer just has to be used as an accuracy layer in the prototxt file like:

layer {
  type: 'Python'
  name: 'py_accuracy'
  top: 'py_accuracy'
  bottom: 'ip2'
  bottom: 'label'
  python_param {
    # the module name -- usually the filename -- that needs to be in $PYTHONPATH
    module: 'python_confmat'
    # the layer name -- the class name in the module
    layer: 'PythonConfMat'
    param_str: '{"test_iter":100}'
  }
  include {
    phase: TEST
  }
}

There is a working example in the examples folder, which must be copied in caffe/examples folder in order for the relative paths to work. The file python_confmat.py must be copied in caffe/examples/mnist to work for the example, but for your own usage you can place it anywhere as long as the path is included in your $PYTHONPATH.

The confusion matrix is printed to console and looks like this:

Confusion Matrix                                                | Accuracy
------------------------------------------------------------------------
3438    166     191     16      45      9       136     0       | 85.93 % 
191     3306    177     1       69      2       15      0       | 87.90 % 
88      114     3205    34      431     46      80      3       | 80.10 % 
30      12      98      3735    78      23      24      0       | 93.38 % 
11      28      437     29      3196    65      45      11      | 83.62 % 
3       0       64      7       38      3702    8       0       | 96.86 % 
59      4       79      42      44      5       3234    1       | 93.25 % 
2       0       29      3       113     9       6       2639    | 94.22 % 
Number of test samples: 29676
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].