From a6bce8b7a2bcd5e9fe47f7797307eabda44c5e50 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Wed, 26 Apr 2023 12:27:23 +0900 Subject: [PATCH] from local --- .../.data2vec_audio.py.swp | Bin 40960 -> 40960 bytes .../data2vec_audio.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.data2vec_audio.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.data2vec_audio.py.swp index 26bbad36f9a75bef173e9afe1a0da9543b918803..4e43666ebfa00fa6162b16ed3c4eecafcb61f1a5 100644 GIT binary patch delta 90 zcmZoTz|?SnNi4}A%+puFQqO<^2m}}y_-1*e$eiCO_RgNwjg^5RZ!@QZI3sHw8;Ggu r=*l|zzNWzBE;m)iw8`t;Z1}5-67y0r^Ga&<@(L=|H8;O@6O9A_OM@D# delta 78 zcmZoTz|?SnNi4}A%+puFQqO<^2m}}y;%0iJ+&jBb?43Pp7%Kxq-DXY)aYoiUHU@?j hn^hfMSy@vnGD|cjOS(%>u5weIyui(7^J_QJNB~{Y7aRZp diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/data2vec_audio.py b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/data2vec_audio.py index 969854434..81d98ecf3 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/data2vec_audio.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/data2vec_audio.py @@ -502,7 +502,7 @@ class Data2VecAudioModel(BaseFairseqModel): conv_feat_all = torch.cat([conv_feat_all, features[i]]) randint = np.random.randint(10000) - np.save(conv_feat_all.cpu().numpy(), '/home/work/workspace/icefall/egs/librispeech/ASR/conv_feat/ + np.save(conv_feat_all.cpu().numpy(), f'/home/work/workspace/icefall/egs/librispeech/ASR/conv_feat/{randint}.npy') prompt = prompt.expand((features.size()[0], prompt.size()[0], prompt.size()[1])) features = torch.cat([prompt, features], dim=1)