Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
tags:
|
| 4 |
+
- heal
|
| 5 |
+
- horizon
|
| 6 |
+
- occupancy
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# FlashOcc + HENet + LSS
|
| 10 |
+
|
| 11 |
+
FlashOcc uses LSS (Lift-Splat-Shoot) view transformation: HENet extracts multi-view camera features; `LSSTransformer` predicts depth distribution and lifts 2D features to 3D voxel space (`depth=45`, `num_points=10`, `bev_size=(40,40,0.625)`); fused via `BevEncoder` (`BiFPN`); `FlashOccDetDecoder`/`BEVOCCHead2D` outputs 18-class 3D occupancy predictions.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## Deployment Metrics
|
| 16 |
+
|
| 17 |
+
### Model Parameters
|
| 18 |
+
|
| 19 |
+
| Model | Model Input | Backbone | Neck | Model Output |
|
| 20 |
+
|---|---|---|---|---|
|
| 21 |
+
| FlashOcc | 6-camera multi-view images `(B,6,3,512,960)` | HENet | FPN + LSSTransformer + BevEncoder | Occupancy grid `(B,C,H,W)` |
|
| 22 |
+
|
| 23 |
+
### Accuracy Metrics
|
| 24 |
+
|
| 25 |
+
| March | Metric | float | calibration | qat | hbm |
|
| 26 |
+
| --- | --- | --- | --- | --- | --- |
|
| 27 |
+
| J6M | Occ mIoU (MeanIOU) | 0.3664 | 0.3688 | — | 0.369 |
|
| 28 |
+
|
| 29 |
+
> Results are based on `march = March.NASH_M` (J6M) configuration; this task has no QAT stage (qat column is `—`).
|
| 30 |
+
>
|
| 31 |
+
> HEAL version: heal 0.0.2 / hbdk4-compiler 4.11.11 / horizon_plugin_pytorch 3.3.10.
|
| 32 |
+
|
| 33 |
+
### Performance Metrics
|
| 34 |
+
|
| 35 |
+
> **Performance measurement**: FPS is measured with single-core eight-thread; Latency is measured with single-core single-thread; Memory is peak DDR usage.
|
| 36 |
+
|
| 37 |
+
| March | latency (ms) | fps | Memory Usage |
|
| 38 |
+
|---|---|---|---|
|
| 39 |
+
| J6M | 7.65 | 136.07 | 73.80 |
|
| 40 |
+
| J6P | 5.62 | 731.18 | 78.10 |
|
| 41 |
+
| J6B | 30.51 | 33.66 | 82.00 |
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## Model Overview
|
| 46 |
+
|
| 47 |
+
### Core Design
|
| 48 |
+
|
| 49 |
+
FlashOcc uses LSS (Lift-Splat-Shoot) view transformation: HENet extracts multi-view camera features; `LSSTransformer` predicts depth distribution and lifts 2D features to 3D voxel space (`depth=45`, `num_points=10`, `bev_size=(40,40,0.625)`); fused via `BevEncoder` (`BiFPN`); `FlashOccDetDecoder`/`BEVOCCHead2D` outputs 18-class 3D occupancy predictions.
|
| 50 |
+
|
| 51 |
+
- **Task type**: BEV 3D occupancy prediction (BEV Occupancy Prediction).
|
| 52 |
+
- **backbone**: HENet (`type=HENet`, `depth=45`, `num_points=10`), extracts multi-view camera features.
|
| 53 |
+
- **neck**: `FPN` + `LSSTransformer` (Lift-Splat-Shoot view transformation, `bev_size=(40,40,0.625)`, `grid_size=(128,128)`) + `BevEncoder` (`BiFPN`).
|
| 54 |
+
- **Occupancy head**: `FlashOccDetDecoder` (`BEVOCCHead2D`, `num_classes=18`, `ignore_index=17`).
|
| 55 |
+
- **Loss**: `CrossEntropyLoss` (occ seg).
|
| 56 |
+
- **Model input**: 6-view camera images `(B,6,3,512,960)` (`data_shape=(3,512,960)`).
|
| 57 |
+
- **Model output**: 18-class 3D occupancy grid `(B,C,H,W)` (`occ3d_seg_class` 18 classes, includes `others`/`ignore_index=17`).
|
| 58 |
+
|
| 59 |
+
### Official Repo and Paper
|
| 60 |
+
|
| 61 |
+
Official repo: https://github.com/Yzichen/FlashOCC
|
| 62 |
+
Paper: https://arxiv.org/abs/2311.12058
|
| 63 |
+
|
| 64 |
+
Note: camera backbone HENet is HEAL-developed; official repo uses a different backbone.
|
| 65 |
+
|
| 66 |
+
### Reference
|
| 67 |
+
|
| 68 |
+
For more J6 chip deployment details, see https://developer.horizon.auto/blog/10154
|