diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_adapter.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_adapter.py.swp index b39ecca2e..fb96e1cc4 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_adapter.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_adapter.py.swp differ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_adapter.py b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_adapter.py index ef6901250..5ec2d89ba 100755 --- a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_adapter.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_adapter.py @@ -833,11 +833,11 @@ def compute_loss( batch_idx_train = params.batch_idx_train warm_step = params.warm_step - #texts = batch["supervisions"]["text"] - texts = [] - for cut in supervisions['cut']: - utt_id = cut.id - texts.append(pl_texts[utt_id]) + texts = batch["supervisions"]["text"] + #texts = [] + #for cut in supervisions['cut']: + # utt_id = cut.id + # texts.append(pl_texts[utt_id]) token_ids = sp.encode(texts, out_type=int) y = k2.RaggedTensor(token_ids).to(device)