Views
No views yet
HumOmni Nexusdataset/empatheticDialogue_* 构建统一样例池 data/cache/all_samples.jsonl。data/cache/all_features.pt。train/val/test = 70/15/15 的三集划分训练 pairwise 排序模型,用于选择 checkpoint。epoch29。4892 条带标签样例重新训练 29 轮,得到最终模型。phase2-test_* 正式测试目录推理并合并结果。542 道题。原始发布 JSON 中,GigaSpeech 和 MELD 使用 data_index,EmoV-DB 使用 question_id;候选项均以 options 键值对象保存。数据加载器会统一转换为内部的 question_id 和候选列表结构。[utterance_audio_feat, response_audio_feat, text_context_feat]microsoft/wavlm-large、iic/emotion2vec_plus_large 和基于 parselmouth / librosa 的手工韵律特征,文本特征来自 microsoft/deberta-v3-base,排序模型为 PairwiseRanker。1config.yaml
2Dockerfile
3docker-compose.yml
4requirements.txt
5README.md
6
7src/
8 prepare_data.py
9 prepare_features.py
10 train.py
11 train_all.py
12 inference.py
13 infer_all.py
14 runtime_utils.py
15 data/
16 features/
17 model/
18
19data/cache/
20 all_samples.jsonl
21 all_features.pt
22
23dataset/
24 # 原始训练集与正式测试集目录,未随仓库上传,需手动补充。
25 empatheticDialogue_n_multi-emotion/
26 empatheticDialogue_t_multi-context/
27 phase2-test_multi-context_gigaspeech/
28 phase2-test_multi-context_meld/
29 phase2-test_multi-emotion_emovdb/
30
31models/
32 # Hugging Face / ModelScope 模型缓存目录,需按运行环境自动下载或手动补充。
33
34runs/main_route/model/
35 pairwise_ranker_epoch29.ptconfig.yaml:统一配置数据路径、模型名称、音频参数、训练参数和推理输出目录。Dockerfile / docker-compose.yml / requirements.txt:提供可复现运行环境。src/:包含样例构建、特征提取、三集划分训练、全样本训练、单目录推理和批量推理入口。data/cache/all_samples.jsonl:由原始训练集构建的统一样例池。data/cache/all_features.pt:由统一样例池提取的候选级特征池。runs/main_route/model/pairwise_ranker_epoch29.pt:最终采用的 29 轮全样本训练 checkpoint。dataset/:原始训练集和正式测试集目录,因数据授权和体积原因不随仓库上传,完整复现时需要手动补充。models/:预训练模型缓存目录,默认可由程序按配置下载,也可在离线环境中手动补充。2.8.0、CUDA 12.8。本次 Phase 2 推理已在 Python 3.12.3、PyTorch 2.8.0+cu128 和 RTX 5090 上验证。docker compose build appdocker compose run --rm app python src/prepare_data.py --config config.yamldocker compose run --rm app python src/prepare_features.py --config config.yamldocker compose run --rm app python src/train.py --config config.yaml --epochs 50docker compose run --rm app python src/train_all.py --config config.yaml --epochs 29 --output-dir runs/main_routedocker compose run --rm app python src/infer_all.py --config config.yaml --checkpoint runs/main_route/model/pairwise_ranker_epoch29.pt --dataset-root dataset --phase phase2 --output runs/main_route/phase2/submission_epoch29.jsonl--checkpoint 指向:runs/main_route/model/pairwise_ranker_epoch29.pt