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 050f0ee96..c770643c1 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.data2vec_audio.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.data2vec_audio.py.swp differ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.model.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.model.py.swp index f3ad9c8bf..6a02f9de1 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.model.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.model.py.swp differ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/model.py b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/model.py index 8c219bb70..048af6161 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/model.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/model.py @@ -84,11 +84,10 @@ class Transducer(nn.Module): print(self.sid) print('-'*20) if prompt: - self.prompt = torch.randn((200, 512), requires_grad=True) - statistic = open(f'/home/work/workspace/icefall/egs/librispeech/ASR/conv_feat/{self.sid}/{sid}_statistic.txt', 'r').readlines() + #statistic = open(f'/home/work/workspace/icefall/egs/librispeech/ASR/conv_feat/{self.sid}/{sid}_statistic.txt', 'r').readlines() self.prompt = torch.nn.Parameter(torch.rand((50, 512))) - print(self.prompt) - + #print(self.prompt) + ''' new_emb = torch.empty(512, 50) for i in range(512): mean, std = statistic[i].strip().split(' ') @@ -98,6 +97,7 @@ class Transducer(nn.Module): new_emb = new_emb.transpose(1,0) self.prompt = torch.nn.Parameter(new_emb) print(self.prompt) + ''' def forward( self,