from local

This commit is contained in:
dohe0342 2023-04-27 20:37:25 +09:00
parent 5324c9cfdf
commit a42302c170
2 changed files with 3 additions and 0 deletions

View File

@ -4,8 +4,11 @@ import matplotlib.pyplot as plt
spk_list = glob('./conv_feat/*') spk_list = glob('./conv_feat/*')
for spk in spk_list: for spk in spk_list:
spk_id = spk.split('/')[-1]
feats = [] feats = []
feat_list = glob(f'{spk}/*.npy') feat_list = glob(f'{spk}/*.npy')
static_file = open(f'{spk}/{spk_id}_statistic.txt', 'w')
for feat in feat_list: for feat in feat_list:
feat = np.load(feat) feat = np.load(feat)
feats.append(feat) feats.append(feat)