Skip to main content

The compact file kept two labels but left out a revision record

Two people look at the same item. One chooses label A and the other chooses B. Their final answers show that they disagree. But if you want to know whether someone revised a judgment, the last answer alone won’t tell you.

For a fictional item, we gave Label Studio, a tool for collecting labels, two conflicting answers and a record of a change to one of them. Then we asked it to write the data in two formats. The compact file kept both final answers and who gave them. Only the full file kept the change record we supplied.

An annotation is a record of someone’s judgment about an item. The item has an ID so you can bring its labels together. Each annotation has an ID of its own so you can trace a change to a particular judgment. The user ID identifies the person recorded as making it.

What we put into the two files

For item 7 we supplied four annotation records. User 11 chose A in annotation 101. User 12 chose B in annotation 102. Annotation 103 was marked canceled and annotation 104 skipped. We also put a history entry under 101.

We passed that same fictional task to two file writers from one fixed version of the Label Studio software development kit (SDK). One wrote raw JSON. The other wrote its compact form, JSON_MIN. How the SDK selects judgments · Raw and compact file writers

What the full and compact writers kept from the same four records
What we checkedRaw JSON writerCompact writer
Disagreement on task 7Copied the input file exactlyUser 12 chose B in annotation 102. User 11 chose A in annotation 101.
Canceled annotation 103 and skipped annotation 104Kept bothLeft out both
History supplied with annotation 101Kept itLeft it out

What a colleague could reconstruct

Open the compact file and you can put B from user 12 next to A from user 11 and trace both back to item 7. Look for the earlier history under annotation 101, though, and it’s gone. So are the canceled and skipped entries.

To check a delivery, choose an item with a disagreement you already know. Find both judgments in the exported file and match them to the item, the people and the annotation IDs. If you need the history, check for a change you know was recorded. If you need independent judgments, also ask how the reviewers worked. Two different user IDs can’t tell you whether one person saw the other’s answer.

The full writer copied exactly the input we gave it. Our comparison used the SDK’s path for writing one task. A different export route needs to be checked with its own delivered file.

An export can also leave individual judgments in a separate file. Take CVAT, a video-labeling tool. Two people can label the same frames in separate jobs, called replicas. Merging their work saves the combined labels to a parent job. A task export leaves the replicas out.

To compare the original labels in a 2D task, ask someone with export access for the annotations from each replica job. Keep the parent job ID and the frame range the replicas share so you can line up the two sets of labels. How CVAT merges labels · How to export a replica job