尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Visual Digit Recognition – CNN in action. Draw a digit and watch a convolutional neural network read it, layer by layer, live in your browser.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Draw a digit and watch a convolutional neural network read it, layer by layer, live in your browser.
▶ Live demo: hasin.eu/projects/cnn-digit-recognition-in-action. Works on desktop and phone.
Machine learning is usually explained with formulas or shown as a black box: a picture goes in, an answer comes out. I wanted a way to see how a neural network works and get an intuitive feel for it, without any math.
So this demo hides nothing. Every step the network takes is on screen and updates as you draw:
Draw a clean 8 and watch it light up. Then draw a sloppy 6, or a letter, and see where it goes wrong. Playing with it shows what a convolutional neural network (CNN) learns, and where its limits are, faster than reading about it.
Below the demo, a short explainer for newcomers to machine learning, with a video of a 1 turning into a 4 and then a 9.
The self-driving car demo shows the other side of the story: you train a small network to drive, three different ways. Self-Driving Car – NN in action.
There is no build step and no dependencies, only static files. You need Node.js for the bundled server.
git clone https://github.com/ehasin/Visual-Digit-Recognition-CNN-in-action.git
cd Visual-Digit-Recognition-CNN-in-action
node serve.mjs
Then open http://localhost:5317 (if that port is taken, the server picks the next free one and prints it). Any other static file server works too, for example python -m http.server.
| File | Role |
|---|---|
index.html | Page, styles and the explainer |
app.js | Drawing pad, canvas rendering, hover |
cnn.js | The network's forward pass in plain JavaScript (about 5 ms) |
preprocess.js | Redraws the pen path MNIST-style: thin stroke, fit to 20 × 20, centred by mass |
model/cnn.json | Weights (54 KB) |
tools/convert-cnn.mjs | Converts the original ONNX model to cnn.json by reading the protobuf directly |
assets/ | The explainer video: a wide cut for desktop, a vertical cut for phones |
docs/ | Screenshots for this README |
share.js | The share bar (under the explainer) and the footer's Share, as plain links |
serve.mjs | Tiny local static server |
Network: conv 5×5 (8 filters) → ReLU → max-pool 2 → conv 5×5 (16 filters) → ReLU → max-pool 3 → dense 256 → 10 → softmax. It is 98.9% accurate on the MNIST test set.
MIT, see LICENSE.
Built by Evgeni Hasin.