tensor·factory

Tiny-CNN object detection · Apache-2.0

A prompt
becomes a tiny
detector.

tensor-factory turns a text prompt into a synthetic dataset, an int8 ONNX model, and a CPU inference harness. No GPU at runtime. No AGPL anywhere.

Live demo GitHub

Fig. 01 — Reference numbers · helicoils

204
fps on CPU
@ 480px
81KB
int8 ONNX
model
1.9PX
median
localization
4×u8
a detection,
in 8-bit

A detection is four uint8 values — normalized xyxy, one byte each.

Fig. 02 — The pipeline

01

Synthesize

Generate images from a prompt — hosted Gemini, or a mock that runs anywhere.

02

Auto-label

GroundingDINO proposes boxes; a human gate approves them before they train.

03

Train

A tiny soft-argmax CNN, quantized down to an 81 KB int8 ONNX model.

04

Run

onnxruntime on CPU — driven from a CLI, an MCP server, or an HTTP endpoint.

Point it at a new object and turn the crank — the pipeline, in full →

Fig. 03 — The documentation

Guides — get it running

Clone, sync, and run the bundled int8 detector on CPU in under a minute. No GPU, no API keys.

The five steps that turn a prompt into your own detector — synthesize, label, review, train, run.

Run the helicoil detector in your browser, entirely client-side.

Reference — every flag, function, and internal

Every command and flag across the five packages, plus the install extras and env vars.

BBox geometry, the 8-bit codec, the Detector, the review gate, and the training functions.

Why a detection is four bytes, the soft-argmax model and its learnable gain, int8 quantization, and the review gate.

Fig. 04 — Examples

Example 01

Helicoil detection

Locating coiled-wire threaded inserts in machined parts from low-cost microscope imagery — what every package is currently tuned against, and the template for the next object you point the factory at.

Try the live demo