Practical overview
When it fits
Use it when a browser application needs Tiny YOLO detections from images or frames and can work with the library’s TensorFlow.js model and image-tensor interface.
Who it is for
- JavaScript developers adding object detection to browser-based image workflows.
- Developers prototyping detection on webcam captures or video frames.
Documented uses
- Detect and label objects in an image tensor in a web application.
- Retrieve bounding-box coordinates and class probabilities for drawing overlays.
- Adjust detection filtering or configure supported custom Tiny YOLO models.
Requirements & limits
- The package is installed through npm or Yarn and exposes JavaScript functions for model loading and detection.
- The documented default input is an RGB tensor of shape (1, 416, 416, 3).
- The README reports about 800 ms per frame on one older MacBook Pro and Chrome setup, so its stated video pace is roughly one frame per second.
- Custom model options include input dimensions, class count, class names and YOLO anchors; anchors are noted for retraining on a new dataset.
- The repository specifies an MIT license.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add Tiny YOLO detection to a JavaScript app
Install the package, load a Tiny YOLO model, and pass an image tensor to the detector.
Before you start
- A JavaScript project using TensorFlow.js
- An RGB image tensor shaped (1, 416, 416, 3)
- A Tiny YOLO TensorFlow.js model
Steps
Install the package with the command below or
yarn add tfjs-yolo-tiny.npm install tfjs-yolo-tinyImport
yoloanddownloadModelfromtfjs-yolo-tiny.Load the model with
await downloadModel().Call
await yolo(inputImage, model)with the image tensor and loaded model.Use each returned box’s coordinates, class name and class probability in the application.
Expected outcome
An array of detected objects with bounding-box coordinates, class names and class probabilities, ready for application-side display.
Guide limitations
- The documented default input is an RGB tensor shaped (1, 416, 416, 3).
- The implementation supports Tiny YOLO; the README says the referenced TensorFlow.js setup did not support full YOLO models.
- The README reports approximately 800 ms per frame on Chrome on a 13-inch, mid-2014 MacBook Pro; other performance is not specified.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- ModelDepot/tfjs-yolo-tiny · Official homepage title · retained in its source language

