zacxr commited on
Commit
edb3fa4
·
verified ·
1 Parent(s): ec93a69

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +69 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ tags:
4
+ - heal
5
+ - horizon
6
+ ---
7
+
8
+ # QCNetOE (Trajectory Prediction)
9
+
10
+ QCNetOE encodes each agent's relative relationships with surrounding map and other agents in a query-centric manner, streaming encoder hidden states agent-by-agent, then the decoder outputs multimodal candidate trajectories and probabilities; removes `torch_geometric`/`torch_cluster` dependencies and eliminates most index/gather/scatter ops for quantization-friendly deployment.
11
+
12
+ ---
13
+
14
+ ## Deployment Metrics
15
+
16
+ ### Model Parameters
17
+
18
+ | Model | Model Input | Backbone | Neck | Model Output |
19
+ |---|---|---|---|---|
20
+ | QCNetOE | Streaming scene representation tensor group `(B,A,pl,pt,HT)` | QCNetOEMapEncoder + QCNetOEAgentEncoderStream | — | Candidate future trajectories `(B,A,6,12,2)` + trajectory probabilities |
21
+
22
+ ### Accuracy Metrics
23
+
24
+ | March | Metric | float | calibration | qat | hbm |
25
+ | --- | --- | --- | --- | --- | --- |
26
+ | J6M | HitRate | 0.8003 | 0.6817 | 0.7984 | 0.7981 |
27
+
28
+ > Data measured with `march = March.NASH_M` (J6M) configuration.
29
+ >
30
+ > HEAL version: heal 0.0.2 / hbdk4-compiler 4.11.11 / horizon_plugin_pytorch 3.3.10.
31
+
32
+ ### Performance Metrics
33
+
34
+ > **Performance test methodology**: FPS is measured with single-core eight-thread; Latency is measured with single-core single-thread; Memory is peak DDR usage.
35
+
36
+ | March | latency (ms) | fps | Memory Usage |
37
+ |---|---|---|---|
38
+ | J6M | 3.72 | 293.43 | 34.80 |
39
+ | J6P | 2.65 | 1572.60 | 38.60 |
40
+ | J6B | 12.25 | 149.40 | 32.00 |
41
+
42
+ ---
43
+
44
+ ## Model Overview
45
+
46
+ ### Core Design
47
+
48
+ QCNetOE encodes each agent's relative relationships with surrounding map and other agents in a query-centric manner, streaming encoder hidden states agent-by-agent, then the decoder outputs multimodal candidate trajectories and probabilities; removes `torch_geometric`/`torch_cluster` dependencies and eliminates most index/gather/scatter ops for quantization-friendly deployment.
49
+
50
+ - **Task type**: Trajectory prediction (Motion Forecasting, multimodal trajectory prediction).
51
+ - **backbone**: `QCNetOEMapEncoder` + `QCNetOEAgentEncoderStream` (streaming inference, `stream_infer=True`; `hidden_dim=128`, `num_heads=8`, `head_dim=16`, `num_freq_bands=32`, `num_map_layers=1`, `num_agent_layers=1`, `time_span=2`, `dropout=0.1`; agent-map interaction `num_pl2a=32`, agent-agent interaction `num_a2a=36`).
52
+ - **neck**: — (QCNetOE has no standalone neck; encoder output feeds directly into decoder).
53
+ - **Decoder**: `QCNetOEDecoder` (`num_dec_layers=1`), outputs `num_modes=6` candidate trajectories and their probabilities.
54
+ - **Preprocessing**: `QCNetOEPreprocess` (`stream=True`, constructs agent/map relative representations and spatiotemporal relative position encoding).
55
+ - **Post-processing**: `QCNetOEPostprocess` (output dimension `output_dim=2`, i.e. predicted trajectory (x, y)).
56
+ - **Loss**: `QCNetOELoss`.
57
+ - **Model input**: Streaming scene representation tensor group (`B=1, A=30` agents, `pl=80` map polygons, `pt=50` polygon points, `HT=10` history steps), including `agent`/`map_polygon`/`map_point`/`decoder` etc. as OrderedDict inputs; 5s history (`num_historical_steps=10`) + 6s prediction (`num_future_steps=12`).
58
+ - **Model output**: 6 candidate future trajectories per agent to predict (`num_modes=6`, 12 steps, 2-dim coordinates `output_dim=2`) + probability per trajectory.
59
+
60
+ **Deployment notes**: Model supports cold-start/hot-start streaming inference (`quant_infer_cold_start` controls). Both `cali_model` and `deploy_model` enable `stream_infer=True`; `save_memory` configured separately for training/deployment (training `save_memory=True` saves GPU memory, deployment `save_memory=False`). HBIR export enables `enable_vpu=True`; compilation uses `input_source=["ddr"]` (trajectory prediction input read from DDR, not pyramid image input), unlike image-based tasks.
61
+
62
+ ### Official Repo and Paper
63
+
64
+ Official repo: https://github.com/ZikangZhou/QCNet
65
+ Paper: https://openaccess.thecvf.com/content/CVPR2023/papers/Zhou_Query-Centric_Trajectory_Prediction_CVPR_2023_paper.pdf
66
+
67
+ ### Reference
68
+
69
+ For more J6 chip deployment details, see https://developer.horizon.auto/blog/10004