基于前视视角的自动驾驶数据采集与ACT模型训练系统。
# 后端依赖
cd backend
pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/
# 前端依赖
cd ../ui
npm install
cd backend
python main.py
后端运行在 http://localhost:8000
cd ui
npm run dev
前端运行在 http://localhost:5173
output/dataset/)output/train/model.pt当前 ACT 相关代码已经按职责拆分为几层:
policies/models/act/
backend/services/act_checkpoint.py
backend/services/act_preprocess.py
backend/services/act_execution.py
backend/services/act_model.py
ACTInferenceRuntime 运行时装配层backend/api/__init__.py 与 backend/sio_handlers/__init__.py
统一检查入口:
python3 backend/run_act_checks.py
该入口当前会执行:
python3 -m pytest tests/act -q
当前会顺序运行:
tests/act/test_model_minimal.pytests/act/test_runtime_backend.pytests/act/test_data_export_stats.pytests/act/test_end_to_end_smoke.py如果这一入口通过,说明当前 ACT 主链路至少在最小工作流上是闭合的。
├── backend/ # 后端代码 │ ├── main.py # 入口 │ ├── api/ # REST API │ ├── sio_handlers/ # Socket.IO 事件处理 │ └── services/ # ACT runtime / 训练 / 导出 ├── tests/ │ └── act/ # ACT 最小回归与 smoke tests ├── ui/ # 前端代码 ├── output/ # 输出目录 │ ├── dataset/ # 采集的数据 │ └── train/ # 训练模型 │ └── model.pt └── README.md