@hackage / menoh

Haskell binding for Menoh DNN inference library

Latest0.3.0

About

Metadata

  • Last updated , by MasahiroSakai
  • License MIT
  • Maintained by: Masahiro Sakai <sakai@preferred.jp>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.4.3
  2. 8.2.2
  3. 8.0.2
  4. 7.10.3

Package Flags

Use the -f option with cabal commands to enable flags

    buildexamples (on by default)

    build example programs

Readme

menoh-haskell

Hackage Hackage Deps Build Status (Travis CI) Build Status (AppVeyor) License: MIT

Haskell binding for Menoh DNN inference library.

Requirements

Build

Execute below commands in root directory.

sh retrieve_data.sh
stack build

Running VGG16 example

Execute below command in root directory.

cd menoh
stack exec vgg16_example

Result is below

vgg16 example
fc6_out: -19.079105 -37.94045 -16.185831 25.51685 4.432623 ...
top 5 categories are:
8 0.958079 n01514859 hen
7 0.039541963 n01514668 cock
86 0.0018722217 n01807496 partridge
82 0.00027406064 n01797886 ruffed grouse, partridge, Bonasa umbellus
97 0.00003177848 n01847000 drake

Please give --help option for details

stack exec vgg16_example --help

Installation

stack install

Documents

License

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.