arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22834cs.CVcs.LG
收藏

为微控制器的WebSerial视觉训练:一种浏览器基于的设备端CNN训练配套工具

WebSerial Vision Training for Microcontrollers: A Browser-Based Companion to On-Device CNN Training

High School Robotics Educator(高中机器人教育者)

Jeremy Ellis

AI总结:

本文提出webmcu-vision-web,一种浏览器应用,用于在Seeed Studio XIAO ESP32-S3 Sense上端到端训练和部署TinyML视觉模型,提供本地机器学习流程,无需软件安装,支持实时激活可视化,实现快速训练部署。

摘要:

本文介绍了webmcu-vision-web,一个单文件、零安装的浏览器应用,用于在Seeed Studio XIAO ESP32-S3 Sense上端到端训练和部署TinyML视觉模型。该应用作为Paper 1[1]中设备端Arduino固件的浏览器配套工具,提供完全本地的机器学习流程,从固件刷写、图像收集、CNN训练、权重导出和实时激活可视化,无需任何软件安装,仅需Chromium浏览器。系统针对需要在其精确部署条件下训练任务特定视觉分类器的教育者、小型企业和研究人员。关键功能包括:通过esptool-js实现浏览器固件刷写;带有图像预览和内联编辑的SD卡文件浏览器;config.json实时同步用于零重新编译超参数调整;网络摄像头和ESP32 OV2640摄像头图像捕获;TensorFlow.js CNN训练在浏览器侧完成三类运行(约30张每类,20个周期)约需1分钟,相比设备侧的9分钟;权重导出为myWeights.bin和myWeights.h;混淆矩阵;以及从ESP32实时流式传输的Conv2激活热图。任何阶段均不离开本地机器。在三类参考问题(0Blank, 1Cup, 2Pen)上的五次运行一致性评估显示稳定收敛,报告了平均准确率和标准差;所有成果均在下方仓库链接中发布。该仓库是LLM辅助适应新硬件和任务的活模板。所有源代码以MIT许可证发布于https://github.com/webmcu-ai/webmcu-vision-web。

英文摘要:

This paper presents webmcu-vision-web, a single-file, zero-install browser application for end-to-end TinyML vision model training and deployment on the Seeed Studio XIAO ESP32-S3 Sense (XIAO ML Kit, $15--40 USD). Acting as a browser-based companion to the on-device Arduino firmware of Paper 1 [1], it provides a private, fully local machine learning pipeline, from firmware flashing through image collection, CNN training, weight export, and live activation visualization, without any software installation beyond a Chromium-based browser. The system targets educators, small businesses, and researchers who need to train task-specific visual classifiers under their exact deployment conditions. Key capabilities include: in-browser firmware flashing via esptool-js; an SD card file browser with image preview and inline editing; config.json live-sync for zero-recompile hyperparameter adjustment; webcam and ESP32 OV2640 camera image capture; TensorFlow.js CNN training completing a three-class run (~30 images per class, 20 epochs) in approximately 1 minute browser-side versus 9 minutes on-device, enabling a complete collect-train-deploy cycle in under 10 minutes; weight export as myWeights.bin and myWeights.h; confusion matrix; and a live Conv2 activation heatmap streamed from the ESP32 during inference. No data leaves the local machine at any stage. A five-run consistency evaluation on the three-class reference problem (0Blank, 1Cup, 2Pen) demonstrates stable convergence with mean accuracy and standard deviation reported; all artefacts are released at the repository link below. The repository is a living template for LLM-assisted adaptation to new hardware and tasks. All source code is MIT-licensed at https://github.com/webmcu-ai/webmcu-vision-web.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑