Skip to content

models: BEVFusion on the multi-task interface (to be replaced) - #11

Draft
vividf wants to merge 1 commit into
pr-stack-basefrom
pr1-bevfusion-model-parking
Draft

models: BEVFusion on the multi-task interface (to be replaced)#11
vividf wants to merge 1 commit into
pr-stack-basefrom
pr1-bevfusion-model-parking

Conversation

@vividf

@vividf vividf commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Stacked PR 1/15 | 下一層 #12

Stack(base pr-stack-base = 7e35d97):#11#12#13#14#15#16#17#18#19#20(CenterPoint 全功能點)→ #21#25#22#23#24(= 開發 branch HEAD,逐位元一致)。合併由下而上,每合一層把下一層 base retarget。

這個 PR 是什麼

停車(parking)commit,不需逐行 review。 BEVFusion 的模型本體與 multi-task interface:sparse/dense 檢測模型類、multi-task dataclasses(batch inputs / outputs / predictions、typed head outputs)、multi_task_base_model、bevfusion task config、模型層測試。這一層將被其他人的 BEVFusion/multitask 工作取代;壓成單一 commit 放在 stack 最底,未來整塊替換時上層框架 PR 不受波及。

什麼「不在」這裡(刻意移出的永久工作)

逐檔導覽

  • models/detection3d/bevfusion.py:模型類(訓練 forward、legacy ExportSpec TODO 標記)。
  • dataclasses/multi_task_{batch_inputs,outputs,predictions}.pydataclasses/detection3d/head_outputs.py:multi-task 資料契約;head_outputs 改為 typed container(jaxtyping 標注)。
  • models/multi_task_base_model.py:multi-task 基類(training/validation step、assemble)。
  • datamodule/multi_task/dataclasses/multi_task_samples.py:樣本容器(seg 欄位擴充)。
  • configs/tasks/detection3d/bevfusion/...yaml:task config 更新。
  • tests/models/test_bevfusion_multitask_adapter.pytest_bevfusion_sparse.py 不在此(後者移 models: BEVFusion export fusion + head correctness (permanent work, not parking) #25)。
檔案清單(點開)
...el0170_second_secfpn_120m_t4dataset_j6gen2.yaml 3 +
.../dataclasses/detection3d/head_outputs.py 24 +++--
autoware_ml/dataclasses/multi_task_batch_inputs.py 4 +-
autoware_ml/dataclasses/multi_task_outputs.py 9 ++
autoware_ml/dataclasses/multi_task_predictions.py 7 +-
autoware_ml/models/detection3d/bevfusion.py 1 +
autoware_ml/models/detection3d/transfusion.py 1 +
autoware_ml/models/multi_task_base_model.py 115 +++++++++++++++++----
.../models/test_bevfusion_multitask_adapter.py 57 ++++++++++

Review 方式

🤖 Generated with Claude Code

Model body only - encoders, TransFusion head, multi-task dataclasses and
base-model interface. Superseded later by other work; the stage-graph
onboarding of this model is a separate reviewable PR near the top.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant