Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
tags:
|
| 4 |
+
- heal
|
| 5 |
+
- horizon
|
| 6 |
+
- lane-detection
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# SparseMapTR+HENet
|
| 10 |
+
|
| 11 |
+
SparseMapTR uses HENet as the camera backbone to extract multi-view features, converts them to BEV features, then feeds them to SparseMapHead (6-layer sparse query stack) for vectorized map element prediction. Unlike MapTR, SparseMapTR uses a sparse query mechanism (`InstanceBankOE` + `SparsePoint3DEncoder`), refining only a small set of candidate queries iteratively to reduce compute. This task has `use_lidar_gt=True`.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## Deployment Metrics
|
| 16 |
+
|
| 17 |
+
### Model Parameters
|
| 18 |
+
|
| 19 |
+
| Model | Model Input | Backbone | Neck | Model Output |
|
| 20 |
+
|---|---|---|---|---|
|
| 21 |
+
| SparseMapTR | 6-camera multi-view images `(B,6,3,256,704)` + lidar point cloud `(B,N,5)` | HENet-tiny | FPN | vectorized map `(B,L,P,2)` |
|
| 22 |
+
|
| 23 |
+
### Accuracy Metrics
|
| 24 |
+
|
| 25 |
+
| March | Metric | float | calibration | qat | hbm |
|
| 26 |
+
| --- | --- | --- | --- | --- | --- |
|
| 27 |
+
| J6M | chamfer mAP (MAP) | 0.5924 | 0.5882 | — | 0.5892 |
|
| 28 |
+
|
| 29 |
+
> Data tested with `march = March.NASH_M` (J6M); this task has no QAT stage (`—` in the qat column).
|
| 30 |
+
>
|
| 31 |
+
> HEAL versions: heal 0.0.2 / hbdk4-compiler 4.11.11 / horizon_plugin_pytorch 3.3.10.
|
| 32 |
+
|
| 33 |
+
### Performance Metrics
|
| 34 |
+
|
| 35 |
+
> **Performance test methodology**: FPS for J6M/J6P is measured with 8 threads on a single core; J6B uses 4 threads on a single core; Latency is measured with single core, single thread; Memory is peak DDR usage.
|
| 36 |
+
|
| 37 |
+
| March | latency (ms) | fps | Memory Usage |
|
| 38 |
+
|---|---|---|---|
|
| 39 |
+
| J6M | 11.46 | 89.46 | 68.40 |
|
| 40 |
+
| J6P | 9.32 | 259.76 | 98.80 |
|
| 41 |
+
| J6B | 160.03 | 17.03 | 120.00 |
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## Model Overview
|
| 46 |
+
|
| 47 |
+
### Core Design
|
| 48 |
+
|
| 49 |
+
SparseMapTR uses HENet as the camera backbone to extract multi-view features, converts them to BEV features, then feeds them to SparseMapHead (6-layer sparse query stack) for vectorized map element prediction. Unlike MapTR, SparseMapTR uses a sparse query mechanism (`InstanceBankOE` + `SparsePoint3DEncoder`), refining only a small set of candidate queries iteratively to reduce compute. This task has `use_lidar_gt=True`.
|
| 50 |
+
|
| 51 |
+
- **Task type**: Sparse Vectorized Map Construction.
|
| 52 |
+
- **backbone**: HENet-tiny (pretrained), extracts multi-view camera features.
|
| 53 |
+
- **neck**: FPN (`out_strides=[4,8,16,32]`, outputs 256-dim multi-scale features).
|
| 54 |
+
- **decoder**: `SparseMapHead` (6-layer sparse query stack, `InstanceBankOE` + `SparsePoint3DEncoder`).
|
| 55 |
+
- **map elements**: `map_classes=[divider, ped_crossing, boundary]`, `fixed_ptsnum_per_gt_line=20`.
|
| 56 |
+
- **BEV range**: `use_lidar_gt=True` branch, `point_cloud_range=[-15.0,-30.0,-10.0,15.0,30.0,10.0]`, `bev_h_=100`, `bev_w_=50` (bev 100×50).
|
| 57 |
+
- **Model input**: 6-camera images `(B,6,3,256,704)` + lidar point cloud `(B,N,D)` (`use_lidar_gt=True`).
|
| 58 |
+
- **Model output**: 3 classes of vectorized map elements (divider/ped_crossing/boundary), 20 points per line.
|
| 59 |
+
|
| 60 |
+
### Official Repo and Paper
|
| 61 |
+
|
| 62 |
+
Official repo: https://github.com/hustvl/MapTR
|
| 63 |
+
Paper: https://arxiv.org/abs/2208.14437
|
| 64 |
+
|
| 65 |
+
Note: The camera backbone HENet is developed in HEAL; the official repo uses a different backbone.
|
| 66 |
+
|
| 67 |
+
### Reference
|
| 68 |
+
|
| 69 |
+
For more J6 chip deployment details, see https://developer.horizon.auto/blog/10142
|