跪拜 Guibai
← All articles
Frontend · Backend

Six Tiny AI Models That Run Entirely in Browser or on CPU, With Source Codes

By 半刻维度 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Small models that run on CPU or in the browser make AI features like background removal, OCR, and face recognition practical for client-side apps without GPU costs or Python backends. This collection shows the current size and performance bar: several tasks fit in under 10MB.

Summary

A developer who has been publishing small, deployable AI models has collected six of them into one post with download links. Every model runs in a web page or locally on CPU, with model sizes ranging from 5.5MB to 582MB. These cover background removal (46MB), OCR (6MB), old photo restoration (Tencent's 582MB model), torso recognition (Google's 5.5MB model), face recognition (6.5MB), and speech-to-text via Alibaba's ASR.

The post is a straightforward download roundup aimed at readers who want the source code without GPU or Python setup. Web-based implementations are emphasized, and the author notes that the background removal tool now removes arbitrary subjects. A server-side background removal model (SAM3.1, 3.21GB) is teased for release later this week.

The collection points to a growing trend of small, self-hostable AI tools that fit in a browser tab or a lightweight local runtime. Baidu's OCR model is called out as surprisingly fast and accurate, and Google's torso model handles video without lag.

Takeaways
— All six models run on CPU or in the browser; none require a GPU or a Python environment.
— Background removal model is 46MB and now supports removing arbitrary subjects from a web page.
— Baidu's OCR model loads at 6MB and is described as fast and accurate.
— Old photo restoration uses Tencent's 582MB model and runs locally on CPU.
— Torso recognition uses Google's 5.5MB model and works smoothly even on video.
— Face recognition model is 6.5MB and built on Google's framework.
— Speech-to-text uses Alibaba's ASR and is implemented in JavaScript to mimic WeChat's voice messaging.
— A separate server-side background removal model (SAM3.1, 3.21GB) is announced for release later this week.
Conclusions

Bundling six separate tasks into one post signals that edge AI is moving from one-off demos to a toolbox of deployable utilities.

The emphasis on web pages and CPU-only deployment fits a user base that wants to avoid cloud costs and data privacy trade-offs.

Model sizes under 10MB for OCR, torso, and face recognition suggest that on-device inference for common vision tasks is now cheap enough for casual web pages.

Concepts & terms
ASR
Automatic Speech Recognition, the technology that converts spoken audio into text. Alibaba's ASR is used here in a JavaScript simulation of WeChat's voice messaging.
SAM3.1
A newer version of the Segment Anything Model, an AI system for image segmentation. The article references a server-side background removal use with a 3.21GB file.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗