A Mercedes-Benz test vehicle drives itself around a waste bin standing in its lane, seeing it with three front cameras. Nobody ever drew a label for “waste bin”: the class exists because a short list of phrases defines it, and the model learned it from automatically generated labels. The perception model is AGO, my ICCV 2025 open-vocabulary occupancy network (Li et al., 2025), which the nxtAIM research programme published as AGO++: AGO plus everything on this page that it took to put it on a car.
The checkpoint was the easy part. On the first drives the model could not name a bin at all, misplaced objects toward the edges of its 120° lenses, and missed the one bin that mattered, a small black one standing alone in the lane. Once it could see that bin, its detections flickered from frame to frame and the planned path was too jittery to sit in. None of this showed up in the validation metric. This page follows each failure to its root cause and its fix, ending with the temporal model that drove the demo, and shows how every model was checked on the car’s own drives before it was allowed to drive.
We were a small vehicle team. Within it I owned the model end to end, from the training data to the package the car imports, and together we built the integration around it, turning voxels into objects, tracking them, nudging the path around blockers and compiling the network, and ran the drives.
| What went wrong on the car | Root cause | Fix, at the root | Evidence |
|---|---|---|---|
| Every voxel around the bin came out as road | No class phrase named a bin, and no loss read the labels that did | A prompt group: one runtime class defined by synonyms, supervised by those labels | Figure 2 |
| Objects drifted toward the edges of the image | Labeling, training and inference all treated the 120° fisheye lenses as pinholes | Resample every raw image onto the stored pinhole calibration, then relabel and retrain | LiDAR points align to about 2 px; two-camera geometry error 6–9° → 0.1–0.2° |
| The lone bin in the lane was missed | 17 of about 30,000 training keyframes showed a small bin alone on open road | Mined data, bins pasted into the lane, and real cars and pedestrians pasted as counter-examples | Frames detected on three drives: 0/13 · 1/11 · 1/13 → 12/13 · 11/11 · 13/13 |
| The planned path was too jittery to sit in | Single-frame detections flicker | World-frame tracking, then a temporal model that fuses the view from 0.5 s earlier | Frame-to-frame occupancy IoU ahead of the car 0.818 → 0.838 |
| (every model) Does the car run what was tested? | A stateful model is easy to port subtly wrong | Car code and training code run frame by frame on the same drive, plus a check that the history matters | Maximum logit difference 0 over 24 frames |
Several models appear on this page. They are one lineage, each built from the one before:
| Model | What changed | Role on this page |
|---|---|---|
| First package (summer) | the paper’s model ported to plain PyTorch, three front cameras, 21 class phrases | first drives on the car |
| Fisheye-corrected model | the bin class added, the whole pipeline rectified, retrained | found bins by walls and hedges, missed the lone lane bin |
| Second-region model | plus drives with kerbside bins mined from a second, urban region | recovered two of the three lane-bin drives |
| Single-frame model | plus bins pasted into the lane, with cars and pedestrians as counter-examples | the reference every later model is compared with |
| Temporal model | the single-frame recipe plus the bird’s-eye view from 0.5 s earlier | drove the demo in Video 1 |
The goal: drive around an object nobody labeled, with cameras alone
Production perception recognises the classes it was trained on, and the long tail of the road is everything else: lost cargo, debris, a bin pushed into the street. The demonstration had to show the other side. Pick an object the model was never given a manual label for, put it in the lane, and have the car drive around it in closed loop.
Two properties of AGO make that possible. It predicts a dense 3D occupancy grid, saying for every small cube of space around the car whether it is occupied and by what, so an object does not need a bounding-box detector to exist in its output. And its classes are open-vocabulary: each voxel is scored against text embeddings of phrases, so a new class is a new phrase, not a new annotation campaign.
What the demo shows is narrower than “any unknown object”, and worth stating precisely: a class chosen after the data was collected, defined in text, learned from automatic labels, and avoided in closed loop. Occupied space that carries no class does not reach the planner yet; that is the first of the next steps at the end.
The car set three constraints: cameras only, three 120° front cameras covering the forward half; the existing rule-based planner, unchanged; and inference fast enough for the closed loop. The training data came from the auto-labeling pipeline, which turned 1,500 internal driving episodes into 3D occupancy labels with no human annotation. That page ends with a checkpoint. This one starts with the question of how a checkpoint gets onto a car.
A car-ready package: plain PyTorch, a frozen text table, and half a grid
The published AGO code is an mmdetection3d plugin built around nuScenes: six pinhole cameras, a 360° grid and pre-made labels. A vehicle stack cannot depend on that, so the model was ported module by module to plain PyTorch, with its own CUDA deformable-attention kernel and no open-mmlab dependency, and covered by about 1,600 automated tests. The network itself is unchanged in kind (Figure 1): a ResNet-101 backbone reads the camera images, and a tri-perspective-view (TPV) encoder lifts them into three orthogonal feature planes, one seen from above and two vertical ones, from which every voxel’s feature is assembled. A head then scores each voxel against the text embeddings.
The car’s side of the interface is deliberately small: a frame goes in, a labeled voxel grid comes out, and the class phrases travel as a frozen table of text embeddings exported from the checkpoint, so the car never runs a language model.
Two things shaped everything downstream: one design decision, and one audit.
The decision was the grid. It covers only the forward half-disc: 100 × 200 × 16 voxels of 0.4 m, 40 m ahead and 40 m to each side. On the car’s calibration, the three front cameras see 98.6 % of those voxels, the same as all five of the car’s cameras together, while the encoder needs half the queries of a 360° grid.
The audit, run on the port before the main training run, found two flaws that would have cost accuracy silently. The first PyTorch version trained on unnormalised dot products between voxel and text embeddings but scored with cosine similarity at inference, and the text embeddings’ lengths differ by 21 %, so training and inference could disagree about which class was closer. Both now use cosine similarity with a learned temperature, the protocol CLIP itself uses. The second flaw was in the distillation loss, which pulls each voxel’s feature towards the CLIP image feature of the pixels it projects to: 62 % of the voxels it supervised had no real image feature and were being pulled towards a constant fill value, in every run until then. Masking them out removed the pull.
A package that runs is not a model that sees. The first drives showed three ways it did not, and the closed loop added a fourth.
The bin did not exist as a class, so the model could not see it
The first drives past a bin gave a clean result, and it was the wrong one: in a window around the bin, every occupied voxel was road. Nothing was wrong with the network. The first package embedded 21 class phrases, and none of them was a waste bin. The auto-labeler did find bins: next to its main semantic grid it keeps a separate rare-object layer, filled by an open-vocabulary 2D detector. But that layer had been kept for evaluation, and no loss term read it. In one episode, 78 % of the 5,242 voxels in its bin layer were labeled vegetation in the main grid. The paper’s auxiliary open-vocabulary head could not recover them either: its best bin phrase scored 0.30, against 0.35 for its best ordinary class.
The fix was to make a class out of language. A prompt group defines one runtime class as a set of synonyms (“trash bin”, “garbage can”, “dumpster”, “waste container”, so kerbside bins and large containers alike), scores it as the best match in the group, and appends it after the base classes. It adds no parameters, so old and new checkpoints load interchangeably, and the rare-object layer now supervises it. Figure 2 follows that path on one real frame.
“Never manually annotated” is the precise claim, and it is not the same as “unknown”. People did review thousands of the automatic labels and delete the wrong ones, as the lane-bin section shows; nobody drew one.
The model could now name a bin. It still put it in the wrong place.
What this taught
An open-vocabulary model is only open where a loss reads the label. Check what the car’s class list can express before debugging what the network sees.
One resampling step fixed a fisheye lens that every stage treated as a pinhole
On the car, the model looked sensitive to calibration. Measuring the geometry directly showed something bigger: the front cameras are 120° fisheye lenses, but the stored calibration carries only a pinhole matrix, and labeling, feature lifting and inference all projected with it. The error grows toward the edge of the image: 40° off-axis, the pinhole projection misses the true pixel by about 116 pixels in the model’s 800 × 450 input. Fitting a one-parameter Kannala–Brandt fisheye model on the same calibration aligned LiDAR points to about 2 pixels, and cut the angular error between matching rays of two overlapping cameras from 6–9° to 0.1–0.2°. On 278 cached frames, correcting the geometry moved 59 % of the bin label points, against 29 % for ordinary objects. Small objects near the image edge were hit hardest, which is exactly where roadside bins sit.
Correcting the images only at inference would have left the training labels and the learned geometry wrong. Instead, the correction moved to the very first step of every stage: each raw image is resampled so that its pixels land exactly where the stored pinhole matrix says they should. The matrix never changes, so every downstream projection, from label lifting to the TPV reference points, became correct without editing a single line of it. The labels were then regenerated, the distillation targets recomputed and the model retrained. The price is the fisheye rim beyond the pinhole’s ±45° field of view, which the overlap of the three cameras covers.
The lens setting is written into the checkpoint and enforced at inference: the car applies the checkpoint’s setting over its own configuration, and a camera without a lens entry is an error. A rectified model cannot silently run on unrectified images.
With the geometry right, the model found every bin beside a wall or a hedge, and still missed the one standing alone in the lane.
17 keyframes out of 30,000: the lone lane bin was a data gap, not a bug
The lane-bin test is three campus drives past the same small black bin standing alone in the driving lane. A frame counts as detected when at least one bin voxel lies within 1.2 m of the bin, because downstream the tracker decides what becomes an obstacle. The fisheye-corrected model detected it in 0 of 13, 1 of 11 and 1 of 13 frames. The test track of the demo was not part of this test.
Everything suggested a bug. It was the data.
Elimination came first. The car’s output matched the offline output voxel for voxel, so it was not integration, and the 2D detector that produces the labels did see this bin, above its threshold, so it was not the label source. The bin’s logit needed +3 before it won any voxel; seven extra synonyms, the lens model, the bin’s position in the image and sampling bin keyframes three times as often each changed nothing.
Then the distribution. About 30,000 training keyframes held 5,145 bin instances, almost all of them beside vegetation, a building or a fence. Only 17 keyframes showed a small bin alone on open road. At about 25 × 48 pixels in the model’s input, the bin itself drew roughly 5 % of the gradient saliency.
The decisive test was an intervention, not a correlation. Replacing only the road around the bin, with the bin’s own pixels untouched, took it from 0 to 27 bin voxels; moving the same pixels toward the roadside gave 24 to 67, depending on the offset.
The model had learned “a bin is a small object beside a kerb”.
From here on, every fix was judged against one acceptance set and one false-positive limit: at most 200 bin voxels summed over 21 drives that contain no bin. The limit was fixed before training, and epochs were chosen within it, never the other way around.
The fix was to supply the missing case. Real data came first: 182 drives with kerbside bins were mined from a second, urban region, and their labels were cleaned by hand, with 87–98 % agreement between two reviewers and 5,462 wrong instances removed. That recovered two of the three drives (Figure 3), at the cost of false positives rising from 58 to 117 voxels.
For the third drive, the missing situation was synthesised with copy-paste augmentation: 128 real bins, cut out and checked one by one, were pasted onto open road in the driving path at the correct perspective scale and ground height, with matching 3D labels. The first version taught a shortcut, and a cross-review by another member of our team caught it before release: bin-sized blue or black rectangles in the lane turned into bins, 8 of 9 against 0 of 9 before, and false positives rose to 248 voxels. Pasting real cars and pedestrians the same way, as counter-examples, brought false positives back to 146 and kept the lane detections. The colour-block shortcut is only partly fixed, and it is listed among the limits at the end.
A control run from the same start, without pasting, stayed at 2 of 13 frames on the hardest drive. The gain came from the data, not from more training.
{"baseOption": {"grid": {"left": 8, "right": 8, "top": 56, "bottom": 8, "containLabel": true}, "tooltip": {"trigger": "axis", "axisPointer": {"type": "shadow"}}, "legend": {"top": 0, "itemGap": 18, "textStyle": {"fontSize": 11}, "data": ["lane-bin frames detected (%)", "false-positive bin voxels"]}, "xAxis": {"type": "category", "axisTick": {"show": false}, "axisLabel": {"interval": 0, "fontSize": 11}, "data": ["fisheye-\ncorrected", "second-\nregion", "bins pasted\nonly", "single-frame\n(+ counter-examples)", "temporal\n(drove the demo)"]}, "yAxis": [{"type": "value", "name": "frames detected (%)", "max": 100, "nameLocation": "middle", "nameGap": 40, "splitLine": {"show": false}}, {"type": "value", "name": "false-positive voxels", "max": 300, "nameLocation": "middle", "nameGap": 44, "splitLine": {"show": false}}], "series": [{"type": "bar", "name": "lane-bin frames detected (%)", "barWidth": "30%", "itemStyle": {"color": "#b89278"}, "label": {"show": true, "position": "top", "formatter": "{c}%"}, "data": [5.4, 62.2, 97.3, 97.3, 94.6]}, {"type": "bar", "name": "false-positive bin voxels", "yAxisIndex": 1, "barWidth": "30%", "itemStyle": {"color": "#6e7f88"}, "label": {"show": true, "position": "top"}, "data": [58, 117, 248, 146, 185], "markLine": {"symbol": "none", "lineStyle": {"type": "dashed", "color": "#8a3b2e"}, "label": {"formatter": "limit 200", "position": "insideEndTop"}, "data": [{"yAxis": 200}]}}]}, "media": [{"query": {"maxWidth": 600}, "option": {"grid": {"top": 70}, "legend": {"itemGap": 8, "textStyle": {"fontSize": 10}}, "xAxis": {"axisLabel": {"fontSize": 8}}, "series": [{"label": {"fontSize": 9}}, {"label": {"fontSize": 9}}]}}]}
Figure 3: every model in this story on the same acceptance set. Brown is the share of the 37 frames on the three lane-bin drives (13 + 11 + 13) in which the bin was detected; grey is false-positive bin voxels on the 21 bin-free drives, against the 200-voxel limit. Mined data recovered most frames and doubled the false positives; pasting bins alone fixed detection and broke the limit; the counter-examples kept the first and restored the second. The temporal model gives up one frame for steadier output and stays within the limit.
The limit decided the release as well. All three epochs of the single-frame fine-tune found the lane bin equally well; one exceeded the limit, and of the two that passed, the shipped epoch left fewer stray bin voxels on a second, stricter test: one campus drive, counting bin voxels outside a hand-listed set of known containers, under a limit of 1,000.
What this taught
When a model misses one object in one context, the cause is usually in the data, not the architecture. The proof is an intervention that changes only the context.
Closing the loop: tracking can hide flicker, but not fix it
AGO replaced the camera object detector in an existing modular driving stack, and the planner stayed as it was: a rule-based motion planner following a reference path through the test site. A planner consumes objects, not voxels, so our integration turns one into the other.
flowchart LR
C["3 front cameras<br/>120°, lens-rectified"] --> M["AGO<br/>100×200×16 voxels, 0.4 m<br/>classes from text"]
M --> O["Objects<br/>per-class connected components,<br/>yaw-only 3D boxes"]
O --> T["Tracker<br/>world-frame smoothing,<br/>coasting through short gaps"]
T --> N["Nudge<br/>shifts the reference path<br/>around confirmed blockers"]
N --> P["Rule-based<br/>motion planner"]
Each class is split into connected components; small fragments are dropped; each survivor becomes a box whose heading comes from a 2D principal-component fit, so its bottom stays on the ground; and nearby components are merged, because the voxel classifier can split one object across two classes. Only moving-object classes and the bin class reach the planner.
The first closed-loop attempts produced a trajectory too jittery to sit in, because single-frame detections flicker. Our tracking layer absorbed most of it: it smooths box position, size and heading in the world frame, coasts through short detection gaps, and nudges the reference path sideways only after a blocker has been confirmed over several frames, then holds the shift. Three integration bugs had nothing to do with the model:
- excluding the obstacle being avoided by its track id failed, because ids are reassigned when a track drops, so the exclusion became spatial;
- a control flag kept the planner from returning to the reference path after a nudge;
- reversing to retry re-executed a stale nudge.
Compilation had its own trap. We made the network compile-ready with bf16 autocast, tensor shapes passed as plain integers so the graph has no breaks, and the CUDA attention kernel registered as a custom operator the compiler treats as opaque. The first compiled version ignored its camera input entirely: CUDA graph capture replayed stale outputs, because the model selects its queries with data-dependent operations. We turned graph capture off and switched the warm-up to realistic camera projections, since all-zero matrices project nothing into any camera.
Tracking can smooth over flicker, but it cannot invent evidence the model never produced. The steadier fix belongs inside the model.
The model that drove the demo: zero-initialised temporal fusion, bit-exact on the car
Temporal input had been part of the design from the start, for a reason in the labels. They are aggregated over whole drives, so a single frame is asked to see geometry that the car only saw a moment earlier. Giving the model its own recent past closes part of that gap, and it attacks flicker inside the model, where the tracking layer could only hide it. The closed-loop jitter showed why it mattered.
The design is deliberately contained (Figure 4). Only the bird’s-eye-view (BEV) plane is fused, because the other two TPV planes mix height with the horizontal axes and a rigid ground-plane warp means nothing for them. The plane from 0.5 s earlier is warped by ego motion, concatenated with the current one, passed through a 1×1 convolution and added back as a residual. That convolution starts at zero, so switching temporal input on is an exact identity at the first training step: the temporal model starts precisely where the single-frame model stands. One detail is easy to get wrong: the warp’s sampling grid stays in fp32, because bf16 coordinates would shift features by up to a fifth of a cell at the edge of the grid.
The copy-paste augmentation had to become temporal too. A bin pasted only into the current frame would appear from nowhere, so every pasted object also goes into the frame 0.5 s earlier, at the same world position and the right perspective scale, and only where that spot is free in the history frame. An independent cross-check by a teammate re-projected 222 placements and found every one within a pixel.
On the car the model now carries state. A ring buffer keeps each frame’s un-fused BEV plane and pose, so the history costs no second pass through the backbone. The history spacing is a required setting checked against the 0.5 s used in training, a missing pose raises an error instead of silently degrading to a single frame, and the state is reset at the start of every drive.
The temporal model was trained under a strict control: the same start point, data, labels and settings as the single-frame model, with temporal input as the only change. Of its three fine-tuning epochs, only one met the false-positive limit, at 185 voxels, and it shipped under the same rule as before. It is a trade, not a free win:
| Same acceptance set | Single-frame | Temporal (demo) |
|---|---|---|
| Lone lane bin, hardest drive | 12/13 frames | 11/13 frames |
| Unseen bins pasted at the roadside, detected | 74 % | 65 % |
| Cars and pedestrians pasted at the roadside, called bin | 26 % | 15 % |
| Frame-to-frame occupancy IoU, whole grid | 0.717 | 0.746 |
| Frame-to-frame occupancy IoU, 4–30 m ahead, ±12 m | 0.818 | 0.838 |
Frame-to-frame IoU compares the occupancy of consecutive frames after aligning them by the car’s motion, over 441 frame pairs from three car drives. It is the most direct measure of flicker available offline, and it improved on each of the three drives.
A stateful model is the easiest kind to get subtly wrong on a car, so the check was strict. With the real weights, the car’s inference code and the training code ran the same drive frame by frame, across two reset segments: over 24 frames the maximum logit difference was exactly 0. But a zero can also come from a fusion that does nothing, so the same check ran once more with the history wiped, and about 4,000 of 320,000 voxels per frame changed. The history is doing work, and the car computes it exactly as training does.
What this taught
A parity check needs a negative control. “Identical” proves nothing until a deliberate change is shown to make the outputs differ.
Limits first, models second: the gate every model passed
Every model after the first drives went through the same gate before it was handed over, and each failure on the road added a test to it. It is the part of this project I would reuse first.
| Check | What it tests | Bar | Single-frame | Temporal (demo) |
|---|---|---|---|---|
| Lone bin in the lane, three drives | the demo situation | detected in nearly every frame | 12/13 · 11/11 · 13/13 | 11/13 · 11/11 · 13/13 |
| Bins at a door and a row of bins | bins in ordinary context | every frame | 10/10 · 13/13 | 10/10 · 13/13 |
| False-positive bin voxels, 21 bin-free drives | what the planner might avoid that is not there | ≤ 200, fixed before training | 146 | 185 |
| Unseen bins pasted into the lane / roadside | generalisation beyond the test bin | reported | 89 % / 74 % | 90 % / 65 % |
| Cars and pedestrians pasted at the roadside | the shortcut copy-paste could teach | reported | 26 % called bin | 15 % called bin |
| Car code vs training code | that the car runs the model that was evaluated | identical | 0 of 320,000 voxels differ | maximum logit difference 0 over 24 frames |
Each delivery was a package rather than a file:
- the inference-only weights and the frozen text-embedding table;
- the inference configuration, including the lens setting;
- an md5 manifest that also spells out how a stateful model must be run;
- the parity report above.
Every major step was also cross-reviewed independently by another member of the team, which is how the colour-block shortcut was found before release rather than on the road.
What it cannot do yet
- It covers the forward 180° only and has had no safety validation.
- Its output changes with sunlight.
- On the stricter campus test, no model meets the limit of 1,000 stray bin voxels: 1,558 for the single-frame model and 3,092 for the temporal one. Most of those voxels sit on real containers missing from the hand-listed set, but some are near parked cars and a pedestrian, and those are false positives.
- Bin-sized coloured squares pasted into the lane are still mostly called bins, so the model’s idea of a bin is not yet free of shape-and-colour shortcuts.
- Three short drives and 21 negatives are enough to choose an epoch, not to claim a detection rate.
The next steps follow from that list: let the planner use the occupancy grid directly rather than boxes derived from it, so that occupied space with no class also counts; and make mining for objects in unusual context a standing step of the data engine rather than an emergency measure.
What the car taught that the metric did not
Through all of this, the validation table barely moved: waste-bin IoU stayed between 1 and 3 %. Every problem that decided whether the demonstration worked was found by watching the car, and each one became a test that every later model had to pass. The metric never registered the difference; the car drove around the bin.