File size: 1,120 Bytes
338c581 4fa3855 338c581 4fa3855 338c581 4fa3855 338c581 4fa3855 338c581 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # MMAE 数据构造代码
主入口:`P0/known_stem_mix/_shared/pipe_code/run.py`。流程为 `plan → render → export`,构造 Input / Target / Instruction 训练对。
- 提取、删除共用声源选择、同步裁片和目标混音。
- 添加、替换及部分复合编辑共用 `schedule_edits.py` 的时间线。
- 音量与混音共用 `gain_policy.py`、`controlled_mixing.py`。当前 lower 将目标源贡献设为零;raise 均匀采样 +10~+30 dB。
- 保留歌声时在独立 vocal 轨上要求至少 75% VAD 覆盖率。
不需要 Omni、CLAP 或人工准入审核。素材、模型与路径需自行配置;这里不包含测试套件、训练音频或已退役审核实现。
```bash
PIPE=P0/known_stem_mix/_shared/pipe_code
python3 -m pip install -r "$PIPE/requirements.txt"
python3 "$PIPE/run.py" plan --run "$PWD/runs/example" --materials /absolute/path/materials.json --count 100 --seed 42
python3 "$PIPE/run.py" render --run "$PWD/runs/example"
python3 "$PIPE/run.py" export --run "$PWD/runs/example"
```
从 `Code/` 目录执行。详细参数见主入口及共享目录的说明。
|