Giter Club home page Giter Club logo

sznn's Introduction

sznn

๐Ÿš€ High performance nerual network framework running on Web.

issues Size Github Star

Overview

classify transfer detect
Classification Style Transfer Object Detection(TBD)

Usage

Firstly you should determine which backend to use. sznn provides 3 backends(JS, WASM and WebGPU). But currently you could only choose best backend statically by yourself.

Fortunately, we provide a tool as suggestion. Just directly open tools/schedule/detect.html in your target browser and you will see our recommendation.

Two simple API then you can inference ONNX models:

const model = await loadModel("./model.onnx");
const output = await model.forward(input);

Benchmark

Here is SqueezeNet inference benchmark. Test on my M1 MacBook Pro, Chome Canary v100.

benchmark

Obviously, sznn has a long way to go. ๐Ÿ˜…

Roadmap

Warning

This project is still heavily in development. Please DO NOT use it in production environment!

  • Enrich more ONNX opreators. (#1)
  • Add YOLO as detection example. (#2)
  • Optimize convolutional layer. (#3)
  • Improve backends performace. (#4) (#5)

Let's make sznn better together.

License

Apache-2.0 License

Copyright ยฉ๏ธ 2022 Sh-Zh-7

sznn's People

Contributors

sh-zh-7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sznn's Issues

[FEAT] Add YOLO as detection example.

Because sznn only implements a part of the operators, we cannot offer objection detection example.
Hope in the future when more operators are added, we can present YOLO as detection example.

[FEAT] Remove unnecessary data copying in WebGPU.

For convenience, current implementation of WebGPU backend copys data every time when executing a operator.
HPC is all about data movement. It's hard to imagine how much time we spent on these useless data movement.
Consider replace data field with WebGPU buffer type member in WebGPU tensor definition.
And computePass() function should be modified as well, never copy back result back in its end.

[FEAT] Optimize convolutional operator's implementation.

Convolutional operator is the most time-consuming operator in CNN due to statistics.
so it is worth optimizing its implementation.
For small size kernel we can use imcol + winograd algorithm, while for the large size kernel we can use FFT trick and so on.

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.