mil-tokyo/webdnn

The Fastest DNN Running Framework on Web Browser

What it solves

WebDNN allows developers to run neural network inference directly within a web browser, removing the need for a dedicated server to process AI models. It specifically simplifies the process by allowing ONNX models to be loaded directly into the browser without requiring Python preprocessing.

How it works

WebDNN converts and executes ONNX models using various hardware acceleration technologies available in the browser. It supports three primary backends:

  • WebGPU (using WGSL) for modern browsers like Chrome and Edge.
  • WebGL (with WebGL2 and WebGL1 fallback) for broader compatibility.
  • WebAssembly (via emscripten) for CPU-based execution.

Who it’s for

Web developers who want to integrate AI model inference into their web applications without relying on external APIs or server-side processing.

Highlights

  • Direct ONNX Support: Loads ONNX models straight into the browser without Python preprocessing.
  • Multiple Acceleration Backends: Supports WebGPU, WebGL, and WebAssembly for optimal performance.
  • Offline Optimization: Provides the system to optimize models offline before deployment.
  • Dynamic Loading: Operator bundles can be loaded dynamically at runtime to reduce initial load times.

Related

  • Project
  • Project
  • Project
  • Project
  • Project