Student labels 12,576 frames overnight with SAM 3 for free instead of paying $200 to Roboflow
A thesis student labeled 12,576 frames of welders with his own program built on SAM 3, Meta's model that finds objects from a text description. The cloud-based Roboflow Auto Label would have charged about $200 for that volume, or taken half a year on the free tier. Here, three and a half hours on an RTX 4060 Ti was enough. The program computes the "no glove" violation: if a glove box overlaps a hand box, the violation label stays. For your own datasets, local labeling beats the cloud on cost.
AI-processed from Хабр: Машинное обучение; edited by Hamidun News
Labeling images to train a neural network is one of the most tedious and expensive parts of computer vision work. The author of this write-up was building a thesis dataset for a model that finds personal protective equipment (PPE) on photos of workers: gloves, safety footwear and a welding mask. Labeling tens of thousands of frames by hand takes too long, and the cloud service Roboflow Auto Label would have cost about $200 for the whole set.
So he wrote his own auto-annotator on SAM 3 and labeled 12,576 frames overnight on a home GPU. SAM 3 is the third version of Meta's Segment Anything: given an image and a text description such as "welding mask", it finds the matching objects on its own and needs no fine-tuning for your classes.
Why Roboflow Auto Label did not fit
The dataset has six classes: three positive (gloves, safety footwear, welding mask) and three negative (no gloves, no safety footwear, no welding mask). A violation is counted specifically from the negative classes. The welding mask is the worst represented in open data: after removing duplicates, only about two thousand images remained. So the author cut frames from open welding videos. That produced tens of thousands of images, five to six times more than the final set: out of ten seconds of footage, two or three are useful, and the rest is title cards, credits and wide shots.
Roboflow has a ready-made tool: you upload frames, define classes and text descriptions, pick SAM 3 and get masks and boxes. It has a confidence threshold for each class and a preview. Two things put him off.
The first is price: the free tier gives 10 credits a month, one credit equals a thousand images, and unused credits expire at the end of the month. Tens of thousands of frames would take six to seven months, and a paid run on the batch plan costs about two hundred dollars. The second is that the cloud tool has no rules for resolving conflicts between classes, no local run, and no merge mode that adds new labels to existing ones instead of overwriting them.
According to the author, CVAT speeds up manual work but does not eliminate it. Label Studio requires standing up a backend. Autodistill comes closest, but it supports neither priorities between classes nor per-class thresholds. That is how a fifteen-file PyQt6 application came about.
How the program computes violations
The interface has a class table with descriptions (several can be listed, separated by semicolons), its own confidence threshold for each class, a conflict table, a test panel that runs on random frames, and two write modes: replace erases old labels, merge keeps them. The model loads in a separate thread, otherwise the window freezes in the first second.
The most interesting part is "no glove". The model reads the query "bare hand" as "hand", not as "hand without a glove", and it also fires on a hand wearing a glove. Negation cannot be expressed in a text query, so the violation is not searched for but computed.
The program finds hand boxes, finds glove boxes, and for each glove computes the IoU, the share of overlap with a hand box. If the overlap is above a threshold of 0.25, the glove is removed from the labels, and the violation remains.
The order was chosen deliberately: if the model is unsure whether something is a glove or a bare hand, the label goes in as a violation. A person will notice a false violation during review, while a false glove would quietly slip into the dataset. The same code works for footwear and the mask: a pair of classes and one subtraction.
There are other design decisions too:
- a mask is converted to a box using its largest contour, so small fragments at the edges do not inflate the area;
- NMS (duplicate removal) runs separately for each class, because a hand and a glove legitimately overlap;
- each class has its own confidence threshold: a shared 0.5 would have thrown out half the boxes of the rare mask;
- descriptions are written in English, since Russian ones work noticeably worse in SAM 3.
Numbers and limitations
The pipeline has two stages. First, all frames are run on the welding-mask class only, and those without a mask are discarded: roughly every fifth frame survives. The naive "cut and label" approach produces a set in which a third of the frames contain no target object, and the model learns from empty annotations. Then the selected frames are labeled across all six classes, and discrepancies are fixed by hand. The author ran both passes overnight.
On an RTX 4060 Ti, one frame with three to four descriptions takes about a second to process. The final run over 12,576 frames took about three and a half hours, while manual labeling at ten seconds per box would take tens of hours. The dataset contains 12,576 source images (22,637 files in the public export, because the training part is augmented into two variants) and 104,726 boxes. A model trained on it reached mAP50 = 0.825, that is, 82.5% on the standard detector quality metric. The author candidly notes that some of the errors behind this figure come from the labels, not the model.
There is no ground-truth labeling for the 12 thousand frames, so he checked quality indirectly: he wrote a second application that compares the trained model's predictions with the labels and shows the discrepancies: wrong class, box without a prediction, prediction without a box. This is not a quality measurement, but a quick way to find problem frames.
The limitations are real. The model understands compound names poorly and works better with descriptions of appearance: "Welding mask" is found reasonably well, while "сварочная маска" (welding mask) may not be found. Distant gloves are sometimes missed and sometimes merged into one. Safety footwear is the worst case: work boots are almost indistinguishable from winter boots, no query can tell them apart in the image, and some frames had to be thrown out.
The practical takeaway: before a full run, test on twenty frames so you see a non-working description in a minute rather than after three hours. Filter out empty frames by the rarest class before labeling, and for negation classes use set subtraction rather than a text query. The code of the comparison tool is published on GitHub, and the dataset is available on Roboflow Universe.
- Nov 30, 2026Meta VC-1K Dataset: 1,007 Clips for Video Call Tests, and Five Mismatches in the Labels
- Nov 29, 2026Five Malicious GGUF Repositories Found Among 3.27 Million on Hugging Face, Downloaded 2,428 Times
- Nov 29, 2026Stargate Data Center in Abilene Is Poaching Electricians: Paying at Least Three Times More
- Nov 29, 2026Five Poisoned GGUF Models Found on Hugging Face, One Hides a Windows Trojan
Key Questions Answered
Why Roboflow Auto Label did not fit?
The dataset has six classes: three positive (gloves, safety footwear, welding mask) and three negative (no gloves, no safety footwear, no welding mask). A violation is counted specifically from the negative classes. The welding mask is the worst represented in open data: after removing duplicates, only about two thousand images remained. So the author cut frames from open welding videos.
How the program computes violations?
The interface has a class table with descriptions (several can be listed, separated by semicolons), its own confidence threshold for each class, a conflict table, a test panel that runs on random frames, and two write modes: replace erases old labels, merge keeps them. The model loads in a separate thread, otherwise the window freezes in the first second. The most interesting part is "no glove".
What are the key details on Numbers and limitations?
The pipeline has two stages. First, all frames are run on the welding-mask class only, and those without a mask are discarded: roughly every fifth frame survives. The naive "cut and label" approach produces a set in which a third of the frames contain no target object, and the model learns from empty annotations. Then the selected frames are labeled across all six classes, and discrepancies are fixed by hand. The author ran both passes overnight.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
