RF-DETR hand / glove / forearm / wrist segmentation (v3)
Instance segmentation for egocentric video, made to feed HaMeR 3D hand reconstruction (ag-hamer-server). RF-DETR-Seg
(rfdetr 1.11.1) fine-tuned on SAM 3.1 four-class pseudo-labels: hand (bare), glove (worn or not), forearm
(incl. sleeve) and wrist (watch, wristband, the EGO-CAM sensor pod). Code, labeling QC and training procedure:
RF-DETR-HandGlove (handseg/docs/training.md "v3 four-class retrain", handseg/docs/labeling.md "Classes").
| folder | model | trained | use |
|---|---|---|---|
parts_v3_2xl768/ | RF-DETR-Seg 2XLarge @ 768 | 14 x 19,440 sampled images, RTX 5090, 2026-10-09 | default; ag-hamer-server merges hand + glove into one hand class |
parts_v3_small480/ | RF-DETR-Seg Small @ 480 | 20 x 19,440 sampled images, RTX 4090 | real-time candidate (6 ms / frame on a 4090) |
Each folder: checkpoint.pth (EMA weights of the last epoch, rfdetr format, args.class_names = hand, glove, forearm,
wrist), rfdetr-seg-<size>-<res>_fp16.onnx (static batch 1, outputs dets / labels / masks), eval_results_last_ema.md,
handseg_config.json (training arguments); parts_v3_2xl768/ also has the fp32 ONNX
(rfdetr-seg-2xlarge-768_fp32.onnx, the input for TensorRT builds). TensorRT engines are not included: build one on
the target GPU (python -m handseg.train.export --checkpoint checkpoint.pth --fp16 --trt, or ag-hamer-server's
tools/build_trt_engine.py).
In production
parts_v3_2xl768 is the default hand localizer of ag-hamer-server (EGO-CAM head-camera video, 1600x1200, RTX 4090).
Against SAM 3 wearer-hand labels on 7 EGO-CAM sessions (10,600 frames) the server finds the wearer's hand on 98.0 % of
frames and gives another hand a wearer role on 2.1 %; on a held-out 5.5-minute session 95.0 / 90.9 % (left / right
eye).
Training data (no EgoDex, no MCAP): Build AI Egocentric-10K (Apache-2.0, 79.7k frames), HoloAssist (CDLA-Permissive-2.0, 22.7k), HOT3D Aria RGB images (CC BY-SA 4.0, 15.2k; HOT3D's hand annotations were not used), LVIS and Open Images glove photos (CC BY; images filtered per licence), HAGS (CC0), diffusion-edited gloves on HoloAssist frames. Labels from SAM 3.1 (SAM License).
Results
Mask AP (COCO 0.5:0.95) of checkpoint.pth at the trained resolution against SAM 3.1 four-class labels of held-out
data. Hand-like = hand and glove merged into one class (how ag-hamer-server uses the model):
| eval set | 2XLarge hand-like | Small hand-like | 2XLarge hand / glove / forearm / wrist |
|---|---|---|---|
| EGO-CAM, 89 sessions (5,540 frames, target fisheye camera) | 0.698 | 0.590 | 0.65 / 0.72 / 0.79 / 0.66 |
| HOT3D Aria valid (2,335) | 0.902 | 0.855 | 0.90 / — / 0.90 / — |
| Build AI held-out factory (936) | 0.925 | 0.921 | 0.93 / — / 0.84 / 0.54 |
| HoloAssist valid (2,592) | 0.922 | 0.914 | 0.92 / — / 0.84 / 0.71 |
| Glove photos, LVIS + Open Images (95) | 0.600 | 0.545 | 0.57 / 0.61 / 0.71 / — |
2XLarge on EGO-CAM by size (hand-like AP): < 64 px 0.47, 64-128 px 0.59, > 128 px (the wearer's hands) 0.83.
Limitations
- Labels are SAM 3.1 outputs, so AP measures agreement with SAM, not with human masks.
- No left / right classes: ag-hamer-server takes a hand's side from the forearm attached to it and decides which hands are the camera wearer's with a per-track role filter.
- The EGO-CAM wrist sensor pod (never seen in training) is scored as glove, not wrist; it can take a hand's track.
- The wrist class (and the sensor pod) is the least reliable (Small: AP 0.40 on EGO-CAM); small, distant bystander hands are the main recall gap.
Earlier folders (hand/, left_right/, left_right_mix/; EgoDex-trained) only keep their eval reports; their weights
were removed on 2026-10-07.