mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-30 18:22:51 +08:00
Update extract_feature_print.py
This commit is contained in:
parent
66039595c9
commit
a75619c453
@ -80,9 +80,11 @@ else:
|
||||
feats = model.final_proj(logits[0])
|
||||
|
||||
feats = feats.squeeze(0).float().cpu().numpy()
|
||||
# feats = np.repeat(feats, 2,0) # 20ms -> 10ms
|
||||
np.save(out_path, feats, allow_pickle=False)
|
||||
if(np.isnan(feats).sum()==0):
|
||||
np.save(out_path, feats, allow_pickle=False)
|
||||
else:
|
||||
printt("%s-contains nan"%file)
|
||||
if (idx % n == 0):printt("now-%s,all-%s,%s,%s"%(len(todo),idx,file,feats.shape))
|
||||
except:
|
||||
printt(traceback.format_exc())
|
||||
printt("all-feature-done")
|
||||
printt("all-feature-done")
|
||||
|
Loading…
Reference in New Issue
Block a user