A gallery that showcases on-device ML/GenAI use cases and allows people to try and use models locally.
仓库
jasonmayes 的仓库
A small library written in Google Closure to do common things fast, useful for rapid prototyping in JavaScript.
A simple yet fast motion revealing algorithm using the live webcam feed
Specify a directory, this script will search it to find all MP4 videos, convert them to JPGs at a desired FPS and resize them to a given size. Super easy!
A simple efficient configurable particle engine written in JavaScript using HTML5 canvas 2D which works on desktop and mobile by Jason Mayes
Removing people from complex backgrounds in real time using TensorFlow.js in the web browser
Script to convert all MP4 videos in a zip archive to JPG frames at a desired FPS with unique names. It will then retrain the top layers of a binary image classifier using TensorFlow using these extracted images.
A small JavaScript class to programmatically position content with variable widths and heights and minimizing whitespace gaps. Imagine Pinterest on steroids (Pinterest only allows for variable height). By Jason Mayes
A simple script to set up GCE environment in Google Cloud so it is ready to run TensorFlow - an Open Source Software Library for Machine Intelligence
Use your Tessel with Google Compute Engine GPU instance running Darknet YOLO via a Node.js server to perform multibox detection over websockets. We can then point a servo at the object of interest and speak out what we see via the speaker.
Fetch your twitter posts without using the new Twitter 1.1 API. Pure JavaScript! By Jason Mayes
Client side vector search using EmbeddingGemma with Web AI (LiteRT.js, TensorFlow.js, and Transformers.js)
Spotify Web AI DJ - client side agentic smarts using Gemma 2, two billion parameter LLM, to play what a user wants via natural speech input
A Web AI Agent running entirely client side in browser, that's capable of controlling a fictional flights webpage, to get the job done by using Google's Gemma 2 (2B) model in JavaScript via WebGPU thanks to the MediaPipe Web LLM library, combined with some extra function calling logic to enable advanced user experiences.
Short and easy to understand samples demonstrating WebGL 2 features
Stores documents used by the TensorFlow developer community
This little utility library allows you to ask the most common question when working with video content - does the video contain something you care about? Get videos to watch themselves for you with Web AI entirely client side!
Repo for 'Learning JavaScript Design Patterns'
Face recognition using Tensorflow made easier and faster with Node.js + precached Python RPC server