Haskell binding for Menoh DNN inference library.
Execute below commands in root directory.
sh retrieve_data.sh
stack build
Execute below command in root directory.
cd menoh
stack exec vgg16_example
Result is below
vgg16 example
fc6_out: -21.936756 -27.385506 -18.64326 16.917625 5.599732 ...
top 5 categories are:
8 0.93506306 n01514859 hen
7 0.05933844 n01514668 cock
86 0.0033869066 n01807496 partridge
82 0.0008452002 n01797886 ruffed grouse, partridge, Bonasa umbellus
97 0.0003278699 n01847000 drake
Please give --help
option for details
stack exec vgg16_example --help
stack install
-
API reference manual is available on Hackage.
-
see mnist_example.hs and vgg16_example.hs for example usage.
Note: retrieve_data.sh
downloads data/VGG16.onnx
. data/VGG16.onnx
is generated by onnx-chainer from pre-trained model which is uploaded
at http://www.robots.ox.ac.uk/%7Evgg/software/very_deep/caffe/VGG_ILSVRC_16_layers.caffemodel
That pre-trained model is released under Creative Commons Attribution License.