Fine-tuned RFDETRSmall,640px. Classes:0 player,1 referee,2 goalkeeper,3 ball. Research pilot; not validated across matches. Ball detection remains poor.
from huggingface_hub import hf_hub_download
from rfdetr import RFDETRSmall
path = hf_hub_download("Mbonea/football-rfdetr-sam31-distilled-v1", "best_weights.pth")
model = RFDETRSmall(resolution=640, pretrain_weights=path)
detections = model.predict("frame.jpg", threshold=0.4)
Use rfdetr[train,augment]==1.12.1,torch2.8.0,NumPy1.26.4,pyarrow20.0.0; compiler required for default GPU matcher during training. Full environment included. Native PyTorch checkpoint; trust its source before loading.
One 720p Simba-Yanga broadcast yjKCusTGzVg. Train shots17/35/40/60,validation36,test9.119 original training frames plus two torso-hue variants each:357 training images,21 validation,28 test. Same match/stadium remains across splits and replays may share action. No unseen-match evaluation.
SAM3.1 masks converted after largest-component cleanup, geometry/persistence/temporal filters, duplicate removal and frame quarantine. Independent Tactix YOLO26x football boxes screen and supplement labels; plausible SAM player/ref boxes missed by YOLO retained. AI visual screening of contact sheets and116goalkeeper/ball crops removes known logo/replay/drift labels; no exhaustive human ground truth. Selected goalkeepers at goals restored from SAM components. Ball training labels use spatial agreement; ten test ball labels use saved SAM3.1 pitch-clean masks. Labels may still miss objects or misclassify roles. Goalkeeper training labels scarce and validation has no confirmed goalkeeper labels.
Exact frozen dataset and code: private Mbonea/football-sam31-distillation-v1, available to owner. Dataset manifest/SHA and training configuration included. Team identities are a separate appearance/tracking stage.
COCO pretrained RFDETRSmall,AdamW learning rate1e-4,encoder1e-5,batch4*accum4,warmup2,EMA,seed61,max40epochs,early-stop patience8,min_delta.001. Best validation EMA checkpoint selected. Horizontalflip.5,brightness/contrast limit.15,p.4,GaussianBlur3p.1,ToGrayp.1; masked-torso hue variants generated for training only. Model size is Small; later larger variants are separate experiments.
Held-out-shot AP50:95: player .7333,referee .7298,goalkeeper .5684,ball .0550; overall .5216; AP50 .6914. These are agreement with pseudo labels, not independent accuracy.28images/474annotations; only10test balls. Native RF-DETR evaluator uses square resize, which differs from Ultralytics preprocessing, so cross-model comparison includes preprocessing differences.
NVIDIA A10: short single-frame prediction throughput56.24FPS including model pre/postprocessing,excluding image decode and video rendering,25timed images after3warmups. Peak PyTorch allocated memory4.99GB across training/evaluation,not full process/reserved VRAM. Training/loading/evaluation/preview399.18s. These are not full video tracking FPS and do not include team assignment.
Single-match pilot with noisy/incomplete pseudo labels,class imbalance,missing confirmed goalkeeper validation labels,weak ball results,and no independent hand-labelled or cross-match benchmark. Recolouring cannot establish generalization. No tracking IDs are learned. Use a separate ball detector or SAM3.1 reference until ball quality is improved with reviewed data. No claim that this model exceeds SAM3.1 quality.
RF-DETR code/base weights are Apache2.0. This card grants no new rights to source broadcast images or teacher models. Dataset remains private. Prepared by GPT6.1 Sol for the account owner,2026-11-14.