LetterLiGo / SafeEar

The Official Code Repo of SafeEar (Accepted by CCS 2024)
Other
21 stars 3 forks source link

运行train.py代码遇到问题 #4

Open changcunliu opened 1 day ago

changcunliu commented 1 day ago

作者你好,我在调试train19.yaml文件时,遇到了一行代码为train_path: ["/home/lxf/Documents/xinfeng/research/token_spoof/CodecBased/ASVSpoof2019-TSV/train.tsv", "/home/lxf/Documents/xinfeng/datasets/ASVSpoof2019/LA/ASVspoof2019_LA_cm_protocols/ASVspoof2019.LA.cm.train.trn.txt", "/home/lxf/Documents/xinfeng/datasets/ASVSpoof2019_Hubert_L9/LA/ASVspoof2019_LA_train/flac"] val_path: ["/home/lxf/Documents/xinfeng/research/token_spoof/CodecBased/ASVSpoof2019-TSV/dev.tsv", "/home/lxf/Documents/xinfeng/datasets/ASVSpoof2019/LA/ASVspoof2019_LA_cm_protocols/ASVspoof2019.LA.cm.dev.trl.txt", "/home/lxf/Documents/xinfeng/datasets/ASVSpoof2019_Hubert_L9/LA/ASVspoof2019_LA_dev/flac"] test_path: ["/home/lxf/Documents/xinfeng/research/token_spoof/CodecBased/ASVSpoof2019-TSV/eval.tsv", "/home/lxf/Documents/xinfeng/datasets/ASVSpoof2019/LA/ASVspoof2019_LA_cm_protocols/ASVspoof2019.LA.cm.eval.trl.txt", "/home/lxf/Documents/xinfeng/datasets/ASVSpoof2019_Hubert_L9/LA/ASVspoof2019_LA_eval/flac"],其中的.tsv文件我不太清楚是怎么来的,劳烦大佬解释一下。

LetterLiGo commented 1 day ago

Sorry for the misleading information:( As we mentioned in the readme, please adjust the config folder according to your path.

The files of "/home/lxf/Documents/xinfeng/research/token_spoof/CodecBased/ASVSpoof2019-TSV/train.tsv | dev.tsv | eval.tsv" are uploaded. ASVSpoof2019-TSV-train.tsv ASVSpoof2019-TSV-eval.tsv ASVSpoof2019-TSV-dev.tsv

As for "ASVspoof2019_LA_cm_protocols/ASVspoof2019.LA.cm.train.trn.txt | dev.trl.txt ... ", they are exactly the files provided by ASVSpoof2019 Challenge, please download the related official files.

"ASVSpoof2019_Hubert_L9/LA/ASVspoof2019_LA_train/flac ..." are corresponding *.npy* (i.e., Hubert_L9 features) derived from original .wav files. Please first run safeear/utils/dump_hubert_feature.py** to obtain Hubert Features