Skip to content

Jiaolong/xnor-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of XNOR-Net in mxnet and torch

Proof of concept XNOR-Net demo on MNIST dataset.

Data Preparation

Download the mnist dataset and unpack it to path_data.

Models

  • mnist_cnn: ordinary convolutional network
  • mnist_bwn: binary weight network
  • mnist_xnor: xnor-net

Usage

  • torch version
cd torch/xnornet_cpu/
th main.lua -dataDir <path_data> -modelName <mnist_xnor>
  • mxnet version
cd mxnet/
python main.py --network='mnist_cnn'

Accuracy

  • torch version
Model type Testing accuracy
mnist_cnn 98.81%
mnist_bwn 98.38%
mnist_xnor 96.64%
  • mxnet version
Model type Testing accuracy
mnist_cnn 99.02%
mnist_bwn 98.92%
mnist_xnor 98.26%

About

Naive implementation of XNOR-Net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published