Interactive browser-based visualization of how a Convolutional Neural Network (CNN) processes handwritten digits (MNIST) from input pixels to final prediction.
CNN Visualizer is a client-side educational app that lets users draw a digit (0-9) and inspect the full inference flow:
- Input preprocessing (
280x280 -> 28x28) - CNN layer progression (Conv, Pooling, Flatten, Dense)
- Intermediate activations
- Final class confidence distribution
The app is designed to run 100% in the browser with no backend runtime.
- TypeScript (vanilla)
- Vite
- TensorFlow.js
- Three.js
- GSAP
- Canvas API
Detailed technical docs are available in docs/:
- Project Overview
- System Architecture
- CNN Inference Pipeline
- Implementation Roadmap
- Frontend Rendering Spec
- Model Integration Spec
- Deployment and CI
- Testing and Acceptance Criteria
npm create vite@latest cnn-visualizer -- --template vanilla-ts
cd cnn-visualizer
npm install
npm install @tensorflow/tfjs three gsap
npm run devPlace the TensorFlow.js model artifacts in:
public/model/model.jsonpublic/model/group1-shard1of1.bin(or equivalent shard set)
Technical documentation is complete.
Implementation should follow the phased roadmap in docs/04-implementation-roadmap.md.
- Jose Manuel Cortes Ceron (
deepdevjose) - Luis Osvaldo Rufino Velázquez (
osvdevv)
MIT License. See LICENSE.