7 dos and don'ts of using ML on the web with MediaPipe- Google Developers Blog
Oct 5, 2023Jen Person

Summary
This post provides seven dos and don'ts for web developers using ML with MediaPipe. Key technical recommendations include: not bundling ML models in the app but storing them in cloud storage and caching them locally, initializing tasks early and warming them up with a placeholder, cleaning up WebAssembly resources using the .close() method, using MediaPipe Studio for testing and customization, testing on different devices, and choosing models based on use case (speed vs. accuracy) rather than defaulting to the largest model. It highlights the use of WebAssembly for running C++ code in the browser and the importance of manual memory management for C++ resources.
More from the Coral Edge AI Platform trail
- ML Drift: Next-Gen GPU AI/ML Inference at the Edge- Google Developers Blog
- Bring multimodal semantic search to the edge with EmbeddingGemma 2- Google Developers Blog
- EmbeddingGemma 2: The Developer Guide- Google Developers Blog
- Mastering Edge AI on Raspberry Pi with LiteRT and Gemma- Google Developers Blog
- LiteRT.js, Google's high performance Web AI Inference- Google Developers Blog