Install
openclaw skills install traffic-crash-specialist交通事故视频分析与检测专用技能。使用当需要:(1) 分析交通事故视频,(2) 事故识别、因果推理、预防分析,(3) 交通场景时空理解与对象定位,(4) 查询交通事故检测相关模型/数据集/论文,(5) 使用 CrashChat 或 Traffix VideoQA 进行视频问答,(6) 训练或评估交通视频分析模型。触发词:traffic crash、accident detection、crash analysis、交通事故、video QA。
openclaw skills install traffic-crash-specialist交通事故视频理解领域的模型、数据集与工具整合。
论文: CrashChat: A Multimodal Large Language Model for Multitask Traffic Crash Video Analysis (2025)
GitHub: https://github.com/Liangkd/CrashChat
HuggingFace:
核心特性:
任务分类:
论文: A Benchmark for Unified Spatio-Temporal Video Understanding in Traffic Scenes
主页: https://traffix-videoqa.github.io/
核心特性:
| 特性 | CrashChat | Traffix VideoQA |
|---|---|---|
| 骨干模型 | VideoLLaMA-3 7B | TraffiX-Qwen |
| 数据规模 | 18,385 视频 | 1,000 视频 |
| 任务数 | 6 | 3 |
| 特色 | 多任务学习、因果推理 | 时空定位、恶劣天气 |
| 开源程度 | 权重+数据+代码 | 数据集+基准 |
# 克隆仓库
git clone https://github.com/Liangkd/CrashChat.git
cd CrashChat
# 创建环境
conda create -n crashchat python=3.10 -y
conda activate crashchat
# 安装依赖
pip install torch==2.4.0 torchvision==0.19.0 --extra-index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt
pip install flash_attn-2.7.3+cu11torch2.4cxx11abiFALSE-cp310-cp310-linux_x86_64.whl --no-deps
conda install -c conda-forge ffmpeg -y
从 HuggingFace 下载预训练权重:
# 基线模型
huggingface-cli download KDliang/crashchat --local-dir ./ckpt
# 或按任务下载
# ckpt/videollama3_baseline
# ckpt/heterogeneous_multitask (推荐:全任务版本)
# 单 GPU
CUDA_VISIBLE_DEVICES=0 bash scripts/train/Independent_monotask_models_causal_reasoning.sh 1
# 多 GPU
CUDA_VISIBLE_DEVICES=1,2 bash scripts/train/Independent_monotask_models_causal_reasoning.sh 2
# 1. 转换权重
python tool/merge_and_convert_videollama3_lora.py
# 2. 运行评估
CUDA_VISIBLE_DEVICES=0 bash scripts/eval/eval_video_causal_reasoning.sh
# 3. 计算指标
python scripts/eval/compute_causal_reasoning_metrics.py
详细文档见 references/ 目录:
models.md - 模型架构与训练策略详解datasets.md - 数据集格式与标注说明tasks.md - 六大任务定义与评估方法