Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
tags:
|
| 4 |
+
- heal
|
| 5 |
+
- horizon
|
| 6 |
+
- bev
|
| 7 |
+
- lidar
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# SparseBEV + Lidar Fusion + HENet-tiny
|
| 11 |
+
|
| 12 |
+
SparseBevFusion extends SparseBEV with a lidar branch: HENet-tiny extracts camera features, `CenterPointDetector` (`PillarFeatureNet` + `PointPillarScatter`) processes lidar point clouds, `DeformableFeatureAggregationLiF` (with `InstanceFuseModule`) fuses camera-lidar features in BEV space, and `SparseBEVHead` performs sparse query detection.
|
| 13 |
+
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
## Deployment Metrics
|
| 17 |
+
|
| 18 |
+
### Model Parameters
|
| 19 |
+
|
| 20 |
+
| Model | Model Input | Backbone | Neck | Model Output |
|
| 21 |
+
|---|---|---|---|---|
|
| 22 |
+
| SparseBevFusion | 6-camera multi-view images `(B,6,3,256,704)` + lidar point cloud `(B,N,5)` | HENet-tiny (camera) + PointPillarScatter (lidar) | MMFPN + DenseDepthNet + DFA-LiF | 3D bounding boxes `(B,N,cls+reg)` |
|
| 23 |
+
|
| 24 |
+
### Accuracy Metrics
|
| 25 |
+
|
| 26 |
+
| March | Metric | float | calibration | qat | hbm |
|
| 27 |
+
| --- | --- | --- | --- | --- | --- |
|
| 28 |
+
| J6M | NDS | 0.6704 | 0.651 | 0.6647 | 0.6628 |
|
| 29 |
+
| | mAP | 0.6086 | 0.5853 | 0.6076 | 0.5961 |
|
| 30 |
+
|
| 31 |
+
> Results measured with `march = March.NASH_M` (J6M) configuration.
|
| 32 |
+
>
|
| 33 |
+
> HEAL version: heal 0.0.2 / hbdk4-compiler 4.11.11 / horizon_plugin_pytorch 3.3.10.
|
| 34 |
+
|
| 35 |
+
### Performance Metrics
|
| 36 |
+
|
| 37 |
+
> **Performance benchmark**: FPS is measured with single-core 8 threads; latency is single-core single-thread; memory is peak DDR usage.
|
| 38 |
+
|
| 39 |
+
| March | latency (ms) | fps | Memory Usage |
|
| 40 |
+
|---|---|---|---|
|
| 41 |
+
| J6M | 22.01 | 55.91 | 151.80 |
|
| 42 |
+
| J6P | 16.55 | 309.27 | 162.90 |
|
| 43 |
+
| J6B | 85.92 | 19.14 | 84.00 |
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
## Model Overview
|
| 48 |
+
|
| 49 |
+
### Core Design
|
| 50 |
+
|
| 51 |
+
SparseBevFusion extends SparseBEV with a lidar branch: HENet-tiny extracts camera features, `CenterPointDetector` (`PillarFeatureNet` + `PointPillarScatter`) processes lidar point clouds, `DeformableFeatureAggregationLiF` (with `InstanceFuseModule`) fuses camera-lidar features in BEV space, and `SparseBEVHead` performs sparse query detection.
|
| 52 |
+
|
| 53 |
+
- **Task type**: BEV 3D object detection (BEV 3D Object Detection, camera + lidar fusion).
|
| 54 |
+
- **backbone**: HENet-tiny (`type=HENet`, `in_channels=3`, `embed_dims=[64,128,192,384]`, multi-view camera feature extraction); lidar branch `CenterPointDetector` with `PillarFeatureNet` (`num_input_features=5`) + `PointPillarScatter` + HENet (`in_channels=64`) for pillar features (`voxel_size=[0.2,0.2,8]`).
|
| 55 |
+
- **neck**: `MMFPN` (camera branch, `in_strides=[2,4,8,16,32]`→`out_strides=[4,8,16,32]`) + `DenseDepthNet` (dense depth auxiliary) + `DeformableFeatureAggregationLiF` (with `InstanceFuseModule`, BEV camera-lidar feature fusion).
|
| 56 |
+
- **Detection head**: `SparseBEVHead` (`MemoryBank` + `SparseBEVEncoder`, sparse query + `DeformableFeatureAggregationLiF` fusion, `num_classes=10`, `num_decoder=6`, `num_anchors=384`).
|
| 57 |
+
- **Loss function**: `FocalLoss` (cls) + `L1Loss` (reg) + `CrossEntropyLoss` (cns) + `GaussianFocalLoss` (yns).
|
| 58 |
+
- **Model input**: 6-camera multi-view images `(B,6,3,256,704)` + lidar point cloud `(B,N,5)` (`load_dim=5`, `use_dim=[0,1,2,3,4]`, `num_lidar_sweeps=9`, `voxel_size=[0.2,0.2,8]`, `max_voxels=(30000,40000)`).
|
| 59 |
+
- **Model output**: 10-class 3D bounding boxes (`num_classes=10`), `(B,N,cls+reg)`.
|
| 60 |
+
|
| 61 |
+
### Official Repo and Paper
|
| 62 |
+
|
| 63 |
+
Official repo: https://github.com/yichen928/SparseFusion
|
| 64 |
+
Paper: https://arxiv.org/abs/2304.14340
|
| 65 |
+
|
| 66 |
+
Note: The camera backbone HENet is a HEAL in-house implementation; the official repo uses a different backbone.
|
| 67 |
+
|
| 68 |
+
### Reference
|
| 69 |
+
|
| 70 |
+
For more J6 chip deployment details, see https://developer.horizon.auto/blog/10003
|