File size: 17,421 Bytes
059dcd5 fd4f2a7 059dcd5 254780c 059dcd5 254780c 059dcd5 254780c 059dcd5 254780c 059dcd5 254780c 059dcd5 254780c 059dcd5 254780c 059dcd5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | ---
license: apache-2.0
pipeline_tag: robotics
tags:
- autoware
- autonomous-driving
- camera
- multi-view
- bird-eye-view
- multi-task
- e2e
- planning
- 3d-object-detection
- semantic-segmentation
- depth-estimation
- occupancy
- meteor
- meteor2
- onnx
---
# METEOR2 for Autoware (`meteor2`)
Surround-view **multi-task driving network**, second generation of
[METEOR](https://huggingface.co/AutowareFoundation/meteor): 8 cameras at 1152 × 648 plus ego speed and
ego-motion history in; BEV segmentation, 3D boxes, 3D semantic occupancy, depth, 2D segmentation /
detection, traffic-light state and a **6 s ego path** (three candidates, optional route points) out of
one ResNet-18 network.
METEOR2 comes as **two forms of one network** that differ only in the camera-to-BEV lift:
| | Lift | Calibration | Operators | Target |
| --- | --- | --- | --- | --- |
| **METEOR2, Gather form** (`meteor2_gather.*`) | exact geometric lift | `K` / `T_cam_ego` are run-time inputs | standard ONNX incl. `GridSample` | GPUs |
| **METEOR2, NPU form** (`meteor2_npu.*`) | learned block low-rank maps, distilled from the geometric lift | inside the weights (reference 8-camera rig) | `Conv` / constant `MatMul` / `Slice` / `Add` …, no `Gather`, `ScatterND` or `GridSample` | accelerators without resampling operators |
Code, training recipe and tools: **<https://github.com/tier4/METEOR>** (`bevlane/meteorite.py`,
`bevlane/train_meteorite.py`, `tools/meteor2/`).
METEOR2 is published as a **reference model**; an Autoware (ROS 2) node does not exist yet.
## Demo
Gather form (GPUs):
<video controls muted playsinline width="880" src="https://huggingface.co/AutowareFoundation/meteor2/resolve/main/media/meteor2_gather_demo.mp4"></video>
NPU form:
<video controls muted playsinline width="880" src="https://huggingface.co/AutowareFoundation/meteor2/resolve/main/media/meteor2_npu_demo.mp4"></video>
Four scenes of the published demo set
([AutowareFoundation/meteor-demo-scenes](https://huggingface.co/datasets/AutowareFoundation/meteor-demo-scenes)),
faces and licence plates blurred; 5 Hz frames played at 2× speed. Each frame shows the 8 cameras with
predicted depth, the BEV map with 3D boxes, the ego path up to 6 s and the 3D occupancy. The videos were
rendered on 2026-11-24 with development checkpoints of the two forms; the released v1.0 weights were
trained further (occupancy head), so their outputs differ slightly.
## Model overview
| | |
| --- | --- |
| Task | One forward pass: BEV segmentation (9 cls, 0.2 m), 3D oriented boxes (vehicle / pedestrian) with parked/stopped flag and per-agent 3 s forecast, 3D semantic occupancy (10 cls, ±40 m, 0.4 m, 16 height bins), metric depth, 2D semantic segmentation (21 cls), 2D detection (10 cls), ego path (3 candidates; 3 s and 6 s at 0.5 s steps), ego-relevant traffic-light state, area risk field |
| Architecture | ResNet-18 + FPN-lite image backbone (feature stride 4) → depth-weighted column features → camera-to-BEV lift (geometric or learned low-rank) + ground projection → BEV encoder (400 × 250 @ 0.4 m, ±80 m × ±50 m) → task heads |
| Cameras | 8 views, fixed order: `CAM_FRONT_WIDE, CAM_FRONT_LEFT, CAM_FRONT_RIGHT, CAM_BACK_WIDE, CAM_BACK_LEFT, CAM_BACK_RIGHT, CAM_FRONT_NARROW, CAM_BACK_NARROW` |
| Input resolution | 1152 × 648 per camera, RGB uint8 (normalisation inside the graph) |
| Other inputs | ego speed, longitudinal acceleration, ego-motion history (4 s, 8 × 4 values), optional route points (zeros = no route). No HD map, LiDAR or radar |
| Temporal memory | None: single-frame network. The ego path reads the ego-motion history input |
| Parameters | Gather form 19.4 M; NPU form 370.3 M (18.8 M network + 351.5 M lift maps) |
| Format | PyTorch checkpoint + ONNX (opset 17, no custom ops, static shapes, batch 1). TensorRT engines are built locally |
| License | Apache-2.0 |
## Results
| Model | Vehicle AP | Pedestrian AP | BEV mIoU | OCC mIoU | 3 s ADE | 6 s ADE (route) | 6 s ADE (no route) |
| --- | --- | --- | --- | --- | --- | --- | --- |
| METEOR2, Gather form | 0.495 | 0.213 | 0.186 | 0.197 | 0.554 m | 1.424 m | 1.529 m |
| METEOR2, NPU form | 0.488 | 0.212 | 0.185 | 0.190 | 0.559 m | 1.431 m | 1.532 m |
In-house validation set (cameras + ego-motion history, no HD map, LiDAR or radar). Vehicle / pedestrian AP = BEV box AP,
OCC mIoU = mean over the occupied classes (free space excluded), ADE = mean L2 error of the waypoints at 0.5 s steps,
measured with `METEOR_KIN_STOP_GATE=0.3`. The Gather-form row uses the two-block OCC head (`--occ-deep 2`).
These numbers were measured with the PyTorch checkpoints (mixed precision). The ONNX files reproduce the
PyTorch fp32 outputs to within the tolerances listed under [Provenance](#provenance); the table was not
re-measured through the ONNX files.
## Files
| File | Size | Description |
| --- | --- | --- |
| `meteor2_gather.onnx` | 82 MB | Gather form, plain ONNX. Calibration is a run-time input, so the graph is not tied to one rig |
| `meteor2_gather.pt` | 78 MB | Gather form, PyTorch checkpoint (EMA weights, no optimizer state, architecture arguments only). Source of the ONNX |
| `meteor2_gather.param.yaml` | | Inputs, outputs, shapes, class lists, grids and host-side defaults of the Gather form |
| `meteor2_npu.onnx` | 1.48 GB | NPU form, plain ONNX in a single file (the low-rank lift maps are initializers). No calibration input |
| `meteor2_npu.pt` | 1.48 GB | NPU form, PyTorch checkpoint (EMA weights, no optimizer state, architecture arguments only). Source of the ONNX |
| `meteor2_npu.param.yaml` | | Same for the NPU form |
| `build_trt_engine.py` | | Builds a TensorRT engine from either ONNX file (fp32, fp16, or fp16 with the camera projection kept in fp32) |
| `deploy_metadata.yaml` | | Deployment metadata recording the artifact version of this repository |
| `SHA256SUMS` | | Checksums of every file in this repository |
> **TensorRT engines are not distributed here.** Engines are specific to the GPU architecture and
> TensorRT version they are built on; build them locally from the ONNX files with `build_trt_engine.py`
> (see [TensorRT](#tensorrt)).
> The NPU-form ONNX is the plain floating-point graph of the evaluation path; vendor-specific graph
> layouts for a particular accelerator tool chain are produced by `deploy/export_mite_ckpt.py` in the
> repository from the checkpoint.
## TensorRT
```bash
pip install tensorrt # tested with TensorRT 10.16
python3 build_trt_engine.py meteor2_gather.onnx meteor2_gather_fp16.engine --fp16 --geometry-fp32
python3 build_trt_engine.py meteor2_npu.onnx meteor2_npu_fp16.engine --fp16
```
`--geometry-fp32` keeps the camera-projection layers of the Gather form (the layers whose inputs depend
only on `K`, `T_cam_ego` and constants) in fp32. It did not slow the engine in our measurement and brings the fp16 outputs
closer to fp32; it has no effect on the NPU form. Without `--fp16` the engine runs in fp32 (TF32 off).
Engines built with these settings (TensorRT 10.16.1, data-center GPU), compared with the PyTorch model in fp32, on the
24 validation frames of [Provenance](#provenance):
| | Gather fp32 | Gather fp16 + `--geometry-fp32` | Gather fp16 | NPU fp32 | NPU fp16 |
| --- | --- | --- | --- | --- | --- |
| NaN / Inf in any output | none | none | none | none | none |
| Same ego-path candidate chosen | 100 % | 100 % | 100 % | 100 % | 100 % |
| Ego path, max waypoint difference (mean / worst frame) | 0.002 / 0.009 cm | 10.7 / 30.7 cm | 12.5 / 31.4 cm | 0.002 / 0.006 cm | 11.6 / 33.1 cm |
| 6 s ADE on these frames (PyTorch fp32: 2.219 m Gather, 2.245 m NPU) | 2.219 m | 2.226 m | 2.228 m | 2.245 m | 2.250 m |
| BEV segmentation argmax agreement (mean) | 99.99 % | 99.90 % | 99.82 % | 99.99 % | 99.92 % |
| Occupancy argmax agreement (mean / worst frame) | 99.98 / 99.97 % | 99.28 / 98.85 % | 98.76 / 98.14 % | 99.97 / 99.95 % | 99.58 / 99.26 % |
| Box heatmap probability, max abs difference (mean / worst frame) | 0.000 / 0.000 | 0.039 / 0.124 | 0.058 / 0.129 | 0.000 / 0.000 | 0.006 / 0.013 |
The fp16 engines change box scores near the detection threshold, so a few detections can appear or
disappear compared with fp32. AP and mIoU were not re-measured through TensorRT.
v1.0 note: the Gather-form ONNX of tag `v1.0` leaves the fp16 range inside the camera projection, and a TensorRT fp16 engine built from it returns NaN. Use the ONNX of `v1.1` or later for fp16.
## Inputs and outputs (ONNX)
**Inputs**
| Tensor | dtype / shape | Notes |
| --- | --- | --- |
| `imgs` | uint8 `[1, 8, 3, 648, 1152]` | RGB 0..255, camera order as above |
| `K` (Gather form only) | float32 `[1, 8, 3, 3]` | intrinsics at 1152 × 648 |
| `T_cam_ego` (Gather form only) | float32 `[1, 8, 4, 4]` | ego → camera transforms (ego: x forward, y left, z up; camera: x right, y down, z forward) |
| `v0` | float32 `[1]` | ego speed, m/s |
| `acc` | float32 `[1, 1]` | longitudinal acceleration from past samples, m/s²; zeros when unknown |
| `ego_hist` | float32 `[1, 32]` | ego-motion history of the last 4 s: 8 rows of 0.5 s, newest first, each (speed / 10, longitudinal acceleration / 3, yaw rate / 0.5, curvature / 0.1) in SI units; rows without history are zeros |
| `route` | float32 `[1, 13]` | 6 route points (x, y) / 10 at 5, 10, 15, 20, 30 and 50 m of arc length ahead along the route (ego frame, metres), then a flag 1.0. **All zeros = no route** |
**Outputs** (14 tensors; the `*.param.yaml` files list shape, dtype and meaning of each)
| Tensor | Notes |
| --- | --- |
| `lane_logit` | 9-class BEV segmentation logits `[1, 9, 800, 500]`, 160 × 100 m @ 0.2 m; row = (80 − x) / 0.2, col = (50 − y) / 0.2 |
| `hm`, `reg`, `stationary`, `traj` | 3D boxes at 0.4 m `[1, ·, 400, 250]`: centre heatmap logits (vehicle, pedestrian), regression (offsets, log size, sin 2·yaw, cos 2·yaw), parked flag, per-agent 3 s futures |
| `ego` | `[1, 42]`: 3 path candidates × 6 waypoints (x, y) at 0.5 s, 3 candidate scores (indices 36..38, take the argmax), steer / accel / brake |
| `ego_path_6s` | `[1, 3, 12, 2]`: the 3 candidates extended to 6 s (12 waypoints at 0.5 s). Uses `route`; for `v0` < 0.3 m/s the points beyond 3 s are the linear extension of the 3 s path (stop gate, part of the graph) |
| `occ_logit` | `[1, 10, 16, 200, 200]` = class × z × row × col, ±40 m, 0.4 m, z from −1.0 to 5.4 m |
| `depth_logit` | `[1, 8, 64, 162, 288]`: 64 log-spaced depth bins (1.5 – 90 m) per camera at 1/4 resolution |
| `seg2d_logit`, `hm2d`, `reg2d` | per-camera 2D segmentation (21 cls) and 2D detection (10 cls) at 1/4 resolution |
| `tl`, `risk` | traffic-light logits (none / green / yellow / red), area risk logits |
All dense outputs are raw logits; argmax, sigmoid, box decoding (5 × 5 peak selection on the heatmap) and
any temporal fusion run in the host, not in the graph.
## Usage
```bash
pip install onnxruntime numpy huggingface_hub
hf download AutowareFoundation/meteor2 meteor2_gather.onnx meteor2_gather.param.yaml --local-dir meteor2
```
```python
import numpy as np
import onnxruntime as ort
sess = ort.InferenceSession("meteor2/meteor2_gather.onnx", providers=["CPUExecutionProvider"])
# Replace with real data: 8 RGB images resized to 1152 x 648 in the camera order above,
# intrinsics scaled to that size, and ego -> camera transforms.
feed = {
"imgs": np.zeros((1, 8, 3, 648, 1152), np.uint8),
"K": np.tile(np.array([[600, 0, 576], [0, 600, 324], [0, 0, 1]], np.float32), (1, 8, 1, 1)),
"T_cam_ego": np.tile(np.eye(4, dtype=np.float32), (1, 8, 1, 1)),
"v0": np.array([8.0], np.float32), # ego speed, m/s
"acc": np.zeros((1, 1), np.float32), # longitudinal acceleration, m/s^2
"ego_hist": np.zeros((1, 32), np.float32), # ego-motion history (see the input table)
"route": np.zeros((1, 13), np.float32), # zeros = no route
}
names = [o.name for o in sess.get_outputs()]
# the NPU form has no K / T_cam_ego input: feed only what the graph asks for
out = dict(zip(names, sess.run(None, {i.name: feed[i.name] for i in sess.get_inputs()})))
k = int(out["ego"][0, 36:39].argmax()) # chosen candidate
path_6s = out["ego_path_6s"][0, k] # [12, 2]: (x forward, y left) in metres, 0.5 s steps
bev = out["lane_logit"][0].argmax(0) # [800, 500] class index
occ = out["occ_logit"][0].argmax(0) # [16, 200, 200] class index
box_score = 1.0 / (1.0 + np.exp(-out["hm"][0])) # [2, 400, 250]
```
On a CPU one frame takes a few seconds. To rebuild the PyTorch model from a checkpoint, use
`bevlane.probe_net.load_full("meteor2_gather.pt")` in the repository (evaluation wrapper) and
`tools/meteor2/eval_ego6.py` / `tools/meteor2/probe_occ.py` for the path and occupancy metrics.
## Training
Trained with the repository's `bevlane/train_meteorite.py` on in-house driving recordings; no public
dataset was used for these weights. The supervision signals (BEV segmentation, depth, boxes, occupancy,
trajectories, traffic-light state, risk) are generated by the auto-labelling tools in the repository.
The low-rank lift of the NPU form is distilled from the geometric lift. The 6 s head was trained with
route dropout, so it works with and without route points; in the validation above the route points are
taken from the path that was actually driven.
## Limitations
- **Reference model.** There is no Autoware node yet; the files are meant for evaluation, visualisation
and as a reference for integration. It is not a certified driving system and must not control a
vehicle on public roads.
- **Sensor configuration.** Trained only on one 8-camera rig geometry at 1152 × 648. The NPU form has that
geometry inside its lift weights and cannot be used with another rig without re-training. The Gather form
takes `K` / `T_cam_ego` as inputs and therefore runs with another calibration, but accuracy on other rigs
has not been measured.
- **In-house validation only.** The numbers above come from an in-house validation set and are not
comparable to public benchmarks.
- **Ego path inputs.** The ego path uses the ego-motion history input (and speed / acceleration); the
published path errors were measured with it. Behaviour with a zero history has not been characterised
for these weights.
- **Single frame.** No temporal memory; the perception outputs do not use previous frames.
- **Deployment.** TensorRT 10.16 builds were checked on 24 frames (see [TensorRT](#tensorrt)); other
TensorRT versions, Jetson / DRIVE devices and other accelerator tool chains have not been verified.
## Provenance
| | |
| --- | --- |
| Original source | <https://github.com/tier4/METEOR> (`bevlane/meteorite.py`; the ONNX graphs are the evaluation path `forward_geo` with every side input made a graph input) |
| This repository | `AutowareFoundation/meteor2`, tag `v1.1` (`v1.0`: same checkpoints and NPU-form ONNX; Gather-form ONNX before the fp16 fix) |
| Export | NPU form 2026-12-02, Gather form 2026-12-04 (v1.1); PyTorch 2.11.0 TorchScript exporter, opset 17, constant folding; from `meteor2_gather.pt` / `meteor2_npu.pt` |
| Check | onnxruntime 1.23.2 (CPU) against the PyTorch model in fp32 on 24 validation frames (one per scene), with route, without route and with the speed forced to 0 / 0.29 / 0.31 m/s |
| ONNX vs PyTorch fp32 (worst case over all runs) | Gather form | NPU form |
| --- | --- | --- |
| Runs (frames) | 55 (24) | 55 (24) |
| Ego path, max waypoint difference (3 s and 6 s, all candidates) | 0.0183 cm | 0.0229 cm |
| BEV segmentation argmax agreement (min) | 99.9998 % | 99.9997 % |
| Occupancy argmax agreement (min) | 99.9992 % | 99.9997 % |
| Box heatmap logits, max abs difference | 2.0e-04 | 5.0e-05 |
| Largest abs difference over all 14 outputs (logits) | 1.4e-03 | 1.1e-03 |
The ONNX files take uint8 images, while the validation pipeline behind the results table feeds float
images (scaled to 0..1 before the resize to 1152 × 648). Rounding those images to uint8 changes the
PyTorch outputs slightly (chosen 6 s path: median 4 cm per frame) without changing the path error: on 206
validation frames the 3 s / 6 s ADE is 0.618 / 1.532 m with float images and 0.616 / 1.528 m with uint8
images for the Gather form, and 0.597 / 1.473 m against 0.592 / 1.471 m for the NPU form. AP and mIoU
were not re-measured with uint8 images.
The checkpoints hold the weights and the architecture arguments only (training hyper-parameters and
paths were removed; every tensor is unchanged). The image normalisation and the stop gate (0.3 m/s) are
part of the ONNX graphs. One operator was rewritten for the export: the adaptive average pooling in the
6 s head (200 × 125 → 16 × 10) is expressed as two constant `MatMul`s with the same averaging weights.
In the Gather form (v1.1) the camera projection divides before it multiplies by the focal length and
clamps the ray slope to ±8 and the sampling grid to ±2; this only touches cells that lie outside every
image, so the fp32 outputs are unchanged within the tolerances above, and it keeps every intermediate
value inside the fp16 range.
## References
- METEOR repository: <https://github.com/tier4/METEOR>
- METEOR (first generation) model: <https://huggingface.co/AutowareFoundation/meteor>
- Co-MLOps platform: <https://co-mlops.tier4.jp/>
- Autoware: <https://github.com/autowarefoundation/autoware>
|