Skip to content

Commit

Permalink
dev(narugo): x
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Sep 1, 2024
1 parent 6d869ed commit b1e28fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zoo/pyannote/embedding/encode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import glob
import os
from pprint import pprint

import numpy as np
Expand All @@ -13,8 +14,10 @@
if __name__ == '__main__':
files = []
names = []
for name in ['texas', 'kroos', 'surtr', 'mlynar', 'nian']:
new_files = glob.glob(get_testfile('assets', 'speakers', name, '*.wav'))
# dataset_dir = get_testfile('assets', 'speakers')
dataset_dir = '/data/arknights_jp_nested'
for name in os.listdir(dataset_dir):
new_files = glob.glob(os.path.join(dataset_dir, name, '*.wav'))
files.extend(new_files)
names.extend([name] * len(new_files))
pprint(files)
Expand Down

0 comments on commit b1e28fc

Please sign in to comment.