Feeding a causal ball tracker its own previous prediction as a glowing 10th input channel — and training it on its own mistakes via scheduled sampling.
for t in range(T):
# 1. Render previous prediction (or GT early in training) as a Gaussian hint blob
px, py, pv = prev[:, 0:1, None] * W, prev[:, 1:2, None] * H, prev[:, 2:3, None].clamp(0, 1)
hint = torch.exp(-((xx - px) ** 2 + (yy - py) ** 2) / (2 * sigma_px ** 2)) * pv
# 2. Concatenate [frame_{t-2}, frame_{t-1}, frame_t, hint] -> 10-channel ResNet-18 U-Net
coords, logits, feat = encoder(torch.cat([frames_3[:, t], hint[:, None]], dim=1))
pred = refine(coords, feat)
# 3. Scheduled sampling: decay p linearly 1 -> 0 over first 75% of training
use_gt = (torch.rand(B, 1, device=x.device) < p).float() if training else 0.0
prev = use_gt * gt[:, t] + (1.0 - use_gt) * pred
@misc{vinay2026whereistheball,
title = {Where Was the Ball? Feeding a Tracker Its Own Predictions in Degraded Video},
author = {Vinay},
year = {2026},
url = {https://github.com/v1nayh3g/where-is-the-ball}
}