image-classification Β· practical Batch queue Β· CSV/JSON WASM q8 Β· 87.34 MB License: Apache-2.0

Local Photo-Archive Age-Distribution Auditor

Curators and dataset builders often want to know whether a photo collection skews young or old. Queue a folder of images, and get the archive-level 9-bracket distribution computed two ways β€” soft (averaging each photo's full probabilities) and hard (counting only top-1 labels) β€” with every high-uncertainty photo flagged. Nothing is uploaded anywhere.

1 Β· Build the queue

Audit the collection, not the people.

Use aggregate, uncertainty-aware totals to spot dataset skew. Per-photo labels are apparent age under the FairFace taxonomy and are frequently wrong β€” never use them to age-gate, profile, or make decisions about the individuals pictured.

Initialising model loader…

Queue (0 photos)
Photo Name State Top-1 Expected 80% interval Entropy Uncertainty Remove

2 Β· Archive-level distribution

Photos analysed–
Mean expected age–
High-uncertainty–
Mean entropy–
Soft vs hard gap (TV)–
Mean latency–

Analyse the queue to see the archive distribution.

Soft totals keep each photo's doubt (a 40% / 35% split counts as both); hard totals pretend every top-1 label is certain. A large gap means the archive skew you'd report depends on that choice.

See inside the code

Show the code β€” age-core.mjs: aggregateBatch() (soft vs hard archive totals)
Show the code β€” age-core.mjs: buildBatchCsvRows() (one row per rendered photo)
Show the code β€” age-core.mjs: escapeCsvCell() (RFC 4180 + formula-injection guard)

References