From b402fcf667d621f9409f4890cc15160d3049773d Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Wed, 26 Apr 2023 12:05:19 +0900 Subject: [PATCH] from local --- .../.data2vec_audio.py.swp | Bin 40960 -> 40960 bytes .../data2vec_audio.py | 2 ++ 2 files changed, 2 insertions(+) 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 f7adb498819b52afeb0ca0b19841487d1f49485d..44be559eb5f81ba7a7078d2ad063c8e0a667f496 100644 GIT binary patch delta 102 zcmZoTz|?SnNi@kI%+puFQqO<^2m}}yI;VJ~%-SegEx>5Id7?nEKCe7G1A{&XMACM$ vpu=;aRX|nM6A)IJVe3)z_A#R delta 104 zcmZoTz|?SnNi@kI%+puFQqO<^2m}}y@}_vCWN#F$7GSjAJW-%npEsPHfgzp)B56HY x(BZkzVj!;wh(V$iK-mEH&0LPE?32CY^%)f=>wCyg?(vYBT<#IL`L%~=H~{ij87}|; 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 05f2a6422..3a77c5876 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 @@ -492,8 +492,10 @@ class Data2VecAudioModel(BaseFairseqModel): if prompt is not None: print(features.size()) print(padding_mask.size()) + print(padding_mask[0]) print(padding_mask.nonzero()) print(padding_mask.nonzero().size()) + exit() prompt = prompt.expand((features.size()[0], prompt.size()[0], prompt.size()[1])) features = torch.cat([prompt, features], dim=1)