Precision AI MagniData

Precision AI Open Source Data Visualization Tool for exploring image datasets: a
deterministic feature-extraction pipeline, a Flask API, and a React/Three.js dashboard
for browsing images, segmentation masks, and embeddings — including a live 3D
PCA/t-SNE/cluster view over a dataset's embedding space.
Technical report: MagniData: Opening the Black Box After Every Epoch
(PDF, five pages) relates the content of a dataset to the learning behaviour of a model: per-image training signals
recorded at every epoch sit in a common space with photometric, geometric and embedding features, and the report runs
four models on the same 875 tiles of an agricultural segmentation dataset and compares them tile by tile.
Try it without installing anything: the live demo on Hugging Face
has COCO128 and AgriStress-500 already loaded. Its HTTP API answers read-only requests at
https://precisionaiinc-magnidata.hf.space/api: see Use it from a script or an agent.
The current version is 0.1.1; releases, with a wheel and sdist attached, are on GitHub Releases.
precisionai/magnidata/tools/ — a domain-agnostic feature extractor: turns a folder of
images (optionally with COCO-format segmentation annotations) into a single CSV of
per-image complexity/quality/coverage metrics, plus an optional embeddings generator
(DINOv2 by default) producing a matching JSON.
precisionai/magnidata/api/ — a Flask API serving images/masks/overlays, dataset
listing and CSV/embeddings access, server-side PCA/t-SNE/LLE projection and clustering
over embeddings, and an in-app dataset-build pipeline (upload your own images, or
one-click "demo" builds of COCO128 / AgriStress-500).
precisionai/magnidata/dashboard/ — the React + Vite + Three.js portal: parallel
coordinates, histograms, a data table, an image/mask/overlay preview, and the 3D
embeddings view, plus an Experiments tab for training runs.
- Training feedback loop — train segmentation models from the dashboard, store every run in
a local MLflow, and turn per-image losses into dataset axes so persistently hard images can
be found, curated into a new dataset and trained on again. See the
recipe and the
training contract.
Coding standards, naming conventions, and tooling configuration for the Python side are
governed by CLAUDE.md. This repository was migrated from an existing,
working application rather than started from a blank template — see
CONTRIBUTING.md for the specific places it doesn't yet meet
every standard there.
Quickstart — run the full stack
git clone https://github.com/Precision-AI-Inc/magnidata.git
cd magnidata
docker compose up --build
# portal -> http://localhost:5175
# api -> http://localhost:5051/api/health
# mlflow -> http://localhost:5052 (experiment tracking UI)
The stack has no authentication, so it listens on 127.0.0.1 only: other machines cannot reach it, and the API
answers cross-origin browser requests only from the portal. It also answers only requests addressed to localhost,
127.0.0.1 or [::1]; publish it on another address with MAGNIDATA_BIND_ADDRESS and list the name you reach it
by in MAGNIDATA_ALLOWED_HOSTS. The ports, the address they are published on, the
Compose project name and the user the containers run as are read from a git-ignored .env next to
docker-compose.yml; .env.example lists each one with its default. A second checkout on the same
machine sets its own COMPOSE_PROJECT_NAME and ports there to run beside the first. The api and trainer
containers run as the owner of the checkout, so what they write under data_user/ is yours to delete.