From 2d589f91e804e24cd576c4d708ad29571dd15c45 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Wed, 26 Apr 2023 12:03:11 +0900 Subject: [PATCH] from local --- .../.data2vec_audio.py.swp | Bin 40960 -> 40960 bytes .../data2vec_audio.py | 1 + 2 files changed, 1 insertion(+) 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 9c5ea2d3af7afc6bb1f84f1dc63a7cdef733a19a..1c40d0ebcefd47194088a811b5e7bf2e443bdcba 100644 GIT binary patch delta 95 zcmZoTz|?SnNi4}A%+puFQqO<^2m}}yw5NEa7#!ayRwck_y?LTQu|97YI|D-;2SnC- tvY^9jwn88;j$<>EV+{M`2_B~Gsa2^(`5Ky&UwcSTzVE@i`H+WQH~?>98Uz3U delta 87 zcmZoTz|?SnNi4}A%+puFQqO<^2m}}yN+x-vlpWb9Rwck_wRxgIu|97PI|IW64v4JP kWI>15Y#`n__RUO=G3=A8;!P*NYvGuj>7ljxsE2hp0QUhH*#H0l 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 7328a9ec5..f85962ef5 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 @@ -493,6 +493,7 @@ class Data2VecAudioModel(BaseFairseqModel): print(features.size()) print(padding_mask.size()) print(padding_mask.nonzero()) + print(padding_mask.nonezero().size()) exit() prompt = prompt.expand((features.size()[0], prompt.size()[0], prompt.size()[1])) features = torch.cat([prompt, features], dim=1)