Giter Club home page Giter Club logo

mxnet.js's Introduction

MXNetJS Deep Learning in Browser

MXNetJS is the dmlc/mxnet Javascript package. MXNetJS brings state of art deep learning prediction API to the browser. It is generated with Emscripten and Amalgamation. MXNetJS allows you to run prediction of state-of-art deep learning models in any computational graph, and brings fun of deep learning to client side.

Try it on Browser

Online: http://webdocs.cs.ualberta.ca/~bx3/mxnet/classify.html

Local: Python User:

python -m SimpleHTTPServer

Then open browser http://localhost:8000/classify.html

NodeJS User:

npm install http-server -g
http-server

Then open browser http://127.0.0.1:8080/classify.html

See classify_image.js for how it works.

Speed

On Microsoft Edge and Firefox, performance is at least 8 times better than Google Chrome. We assume it is optimization difference on ASM.js.

Use Your Own Model

MXNetJS can take any model trained with mxnet, use tools/model2json.py to convert the model into json format and you are ready to go.

Library Code

  • mxnet_predict.js contains documented library code and provides convenient APIs to use in your JS application.
    • This is the API code your application should use. test_on_node.js shows an example.
  • libmxnet_predict.js is automatically generated by running ./build.sh and should not be modified by hand.

Unit Tests

test_on_node.js will exercise the forward pass inference for a few models available at the MXNet Model gallery. The model JSON files are prepared by running the script ./prepare_models.sh -all from the ./model folder. Currently the test exercises the following models

  • InceptionBN
  • SqueezeNET
  • ResNET18
  • NiN

Resources

Machine Eye -http://rupeshs.github.io/machineye/ Web service for local image file/image URL classification without uploading.

Contrbute to MXNetJS

Contribution is more than welcomed!

mxnet.js's People

Contributors

tqchen avatar antinucleon avatar skevidu avatar piyush3db avatar rupeshs avatar lchiffon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.