from local

This commit is contained in:
dohe0342 2023-04-28 01:11:47 +09:00
parent f104271004
commit f2a27ff281
3 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@ -8,7 +8,7 @@ for spk in tqdm(spk_list):
spk_id = spk.split('/')[-1] 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') #static_file = open(f'{spk}/{spk_id}_statistic.txt', 'w')
if len(feat_list) > 100: if len(feat_list) > 100:
feat_list = feat_list[:100] feat_list = feat_list[:100]
@ -22,7 +22,7 @@ for spk in tqdm(spk_list):
feats_all = np.concatenate([feats_all, feat]) feats_all = np.concatenate([feats_all, feat])
feats_all = feats_all.transpose(1,0) feats_all = feats_all.transpose(1,0)
'''
for i in tqdm(range(512), leave=False): for i in tqdm(range(512), leave=False):
mean = feats_all[i].mean() mean = feats_all[i].mean()
std = feats_all[i].std() std = feats_all[i].std()
@ -32,4 +32,3 @@ for spk in tqdm(spk_list):
plt.hist(feats_all[i], bins=500) plt.hist(feats_all[i], bins=500)
plt.savefig(f'./conv_feat/dim_{i}.pdf') plt.savefig(f'./conv_feat/dim_{i}.pdf')
plt.close() plt.close()
'''