-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when im running the program shows some error like this #7
Comments
Hi! |
yes i downloaded all parts of dataset, its around 60k+ files, and also i downloaded keys & metadata file also. for better understanding im sharing ASVspoof2021_DF_eval directory contents ls -al
total 32388
drwxrwxr-x 4 khalid khalid 4096 Nov 28 17:34 .
drwxrwxr-x 4 khalid khalid 4096 Nov 28 14:41 ..
-rw-r--r-- 1 khalid khalid 7953777 May 27 2021 ASVspoof2021.DF.cm.eval.trl.txt
drwxrwxr-x 2 khalid khalid 25182208 Nov 28 17:34 flac
drwxr-xr-x 3 khalid khalid 4096 Dec 1 2021 keys
-rw-r--r-- 1 khalid khalid 2374 May 28 2021 LICENSE.DF.txt
-rw-r--r-- 1 khalid khalid 2227 May 28 2021 README.DF.txt
-rw-rw-r-- 1 khalid khalid 410 Nov 28 15:10 remove_those_which_not_exist.py |
remove_those_which not exist is a script in python i try to see which files are actually not exist import os
def is_file_exists(file_path):
return os.path.exists(file_path) and os.path.isfile(file_path)
files = open('keys/CM/trial_metadata.txt', "r")
data = files.readlines()
files.close()
for idx, line in enumerate(data):
data[idx] = line.split('- ')[1].strip()
for line in data:
if not is_file_exists("flac/" + line + ".flac"):
print(line)
else:
print("OK: " + line) |
I recreated the preparations of the dataset, please check if you follow all of them exactly - the following structure works.
|
but when im searching for these file in dataset file exists
find ./datasets/ASVspoof2021_DF_eval/flac -name 'DF_E_2015779.flac' -type f ./datasets/ASVspoof2021_DF_eval/flac/DF_E_2015779.flac
The text was updated successfully, but these errors were encountered: