Predict a subset of files using a validation list
mainBy default, the model predicts all .wav files in the --input_dir. To limit prediction to a specific subset, provide a list of utterance IDs (utt-id).
Format for list files:
The file should contain one utt-id per line. The .wav extension is optional.
sys00691-utt0682e32
sys00691-utt31fd854
sys00691-utt33a4826Usage:
- Python API: Use
val_list_path(path to a text file) orval_list(a direct list of strings). - Inference Script: Use the
--val_list_pathflag.
# Python API via file path
mos = model.predict(input_dir="/path/to/wav/dir/", val_list_path="/path/to/your/val/list.txt")
# Python API via direct list
mos = model.predict(
input_dir="/path/to/wav/dir/",
val_list=["sys00691-utt0682e32", "sys00691-utt31fd854"]
)
# Inference Script
python inference.py --input_dir /path/to/wav/dir/ --out_path /path/to/output/file.csv --val_list_path /path/to/your/val/list.txt