Skip to main content

Managing data: from files to collections

Your inputs stay where they are, on your storage, in your folders. QA-Board keeps a catalog of them: where each one is, its metadata, the runs that used it, and the collections you save. This page follows an input from a file on a disk to runs you compare. In the web app, all of it is under Data in a project's sidebar (Inputs and collections).

StepYou doQA-Board keeps
1. RegisterRun on inputs, or qa inputs addThe input's database and path
2. DescribeGive metadataKeys and values, to filter by
3. CurateSave inputs as a collectionA named list, a new version at each change
4. RunList the collection in a batch, or read it from PythonWhich version each run used
5. Change and retireMove or delete files, archive collectionsThe catalog's entries, not your files

Also: annotate with other tools, get a collection as a folder.

1. Register inputs​

An input is a path in a database, the folder your inputs are under. QA-Board learns about inputs in two ways:

  • When runs use them. Nothing to do: every input of qa run and qa batch shows on the project's Inputs page.

  • Before any run, for new data you want to look at and sort first:

    qa inputs add night-captures # the inputs the batch night-captures would run on
    qa inputs add 'night/*.raw' # or paths, with globs, relative to the database
    qa --dryrun inputs add 'night/*.raw' # only lists them
    import qaboard
    qaboard.inputs.add(["night/0001.raw", "night/0002.raw"], database="/mnt/data", metadata={"sensor": "imx766"})

Registering copies nothing: QA-Board records the path. To show thumbnails and open inputs in the viewer, the server must read the folder: administrators add it to the data folders, and install thumbnail decoders for formats like raw sensor files.

Who can register, and what an input's identity is
  • Registering before any run needs the developer role on the project.
  • An input is its database and its path in it. The same file reached by two paths is two inputs; a file that moves is a new input, and the old entry keeps its runs.
  • Inputs are shared by the projects that use them: a project sees the inputs its runs used, those it registered, and those of the collections it can use.

2. Describe them​

Metadata is what you know about an input: the scene, the sensor, the ISO, tags. It comes from:

  • your entrypoint's metadata(), sent with each run (input metadata);
  • metadata= when you register inputs from Python;
  • files next to the input, like 0001.metadata.yaml, that your metadata() reads. QA-Board also lists these sidecar files with the input.

The Inputs page filters by metadata: values to tick, ranges for numbers. Send numbers as numbers (iso: 800, not "800") to get ranges and histograms.

caution

An input's metadata is shared by every project that uses the input, and a run's metadata replaces what was there. Keep one source of truth, your metadata() or your registration script, not both.

3. Curate collections​

A collection is a named list of inputs, like night/hard-cases. Make one on the Inputs page: filter, select, Save as collection (how).

  • Versions: every change saves a new version; night/hard-cases@2 never changes.

  • Personal or shared: a new collection is yours only, until you share it with the project. Shared collections can be pinned for a team.

  • From Python, find inputs with the filters of batches' only and exclude, sample, balance or deduplicate them in your code, then save the result:

    import random, qaboard

    night = list(qaboard.inputs.find(only={"iso": ">=800"}, exclude={"location": "outdoor"}))
    collection = qaboard.collections.create("night/sample", random.sample(night, min(100, len(night))),
    notes="100 of iso >= 800, not outdoor")

    # later: add the new captures, as version 2
    new = qaboard.inputs.find(only={"iso": ">=800"}, folder="/mnt/data/captures/2026-12")
    collection = collection.save([*collection, *new], notes="Added December's captures")

    A collection made this way is yours only, like those saved in the web app; shared=True shares it with the project. find() also takes search (words of the path), folder and database.

4. Run on them​

In a batch, next to inputs (details):

qa/batches.yaml
hard-cases:
collections:
- night/hard-cases@2 # pin the version in CI, so results stay comparable

From Python, in training code or notebooks:

import qaboard

for item in qaboard.collections.get("night/hard-cases@2"):
print(item.absolute_path, item.metadata, item.sidecars)

item.absolute_path is the path on the machine that runs the script: on Windows, your site's path mappings turn /mnt/data/... into the share's path. item.database and item.path are the input's name in QA-Board, the same everywhere.

From the shell, qa collections show night/hard-cases@2 prints the paths. Each run records the collection and the version it ran on.

5. Change and retire​

  • Files change or move: QA-Board doesn't watch your storage. A collection's version keeps listing the same paths: if a file was replaced, runs read the new content; if it was moved, runs fail to find it. Treat registered data as read-only, and add new files instead of editing.
  • Collections are archived, not deleted: hidden from lists, still working in the batches that use them.
  • Inputs whose runs were all deleted are hidden from the Inputs page by default.
  • Deleting your files is yours to do. QA-Board never deletes or moves inputs; it only deletes runs' outputs.

Annotate with other tools​

QA-Board isn't a labeling tool: use the one your team likes (CVAT, Label Studio, FiftyOne...), on the same files.

  1. Give the tool the collection's files. They stay where they are: point the tool at the paths.

    import fiftyone as fo, qaboard

    collection = qaboard.collections.get("night/hard-cases@2")
    dataset = fo.Dataset.from_images([str(item.absolute_path) for item in collection], name="night-hard-cases-2")

    For tools that take a list of files, write item.absolute_path one per line. Keep item.id or the path with each image: it is how results find their input again.

  2. Annotate there. The tool keeps the annotations: it is their source of truth.

  3. Bring back what runs and filters need, as metadata. Either your entrypoint's metadata() reads the tool's export (a file next to the input, or one file for the dataset), or a script sends it:

    qaboard.inputs.add([
    {"database": item.database, "path": item.path, "metadata": {"tags": ["flare"], "pedestrians": 12}}
    for item in collection
    ])

    The Inputs page then filters by these keys, and qaboard.inputs.find(only={"pedestrians": ">=10"}) finds them. Remember that metadata is shared by the projects that use an input, and that runs' metadata() replaces it.

Annotations with their own page, kept per project or per person and shown in the image viewer, are planned: tell us which tools and formats you use.

Get a collection as a folder​

Some tools want a folder. Make one when you need it, with links to the files:

from pathlib import Path
import qaboard

folder = Path("hard-cases")
for item in qaboard.collections.get("night/hard-cases@2"):
link = folder / item.path
link.parent.mkdir(parents=True, exist_ok=True)
link.symlink_to(item.absolute_path) # on Windows without the right to make links: shutil.copy

Links don't protect the files: someone who can write to your data can edit it through the link. Read-only data is a matter of permissions on the folders the data is in. If your team needs collections as a folder that is always there, tell us.

What QA-Board doesn't do​

  • It doesn't store your inputs. No upload, no copy, no second place to keep in sync.
  • It doesn't make derived data. Crops, conversions and other pre-processing belong to your pipeline, which knows how to make and cache them. Register the results as inputs like any others.
  • It isn't a labeling tool. Annotate with the tools you use, and give runs what they need as metadata.