From 9777621c72a162332607c19597e50535bcf6abb7 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Fri, 17 Feb 2023 11:02:55 +0900 Subject: [PATCH] from local --- egs/tedlium2/ASR/conformer_ctc3/.train.py.swp | Bin 61440 -> 61440 bytes egs/tedlium2/ASR/conformer_ctc3/train.py | 3 +++ 2 files changed, 3 insertions(+) diff --git a/egs/tedlium2/ASR/conformer_ctc3/.train.py.swp b/egs/tedlium2/ASR/conformer_ctc3/.train.py.swp index db7faa6e247bdb18194926c127a66e183142ac59..80f5715d7c43e7e6ebb4a5cf96d69d6c5fdf0fb4 100644 GIT binary patch delta 195 zcmZp8z})bFSv1KY%+puFQqO<^2m}}yY#zKzZrmt(TYyo2^G5;U^Sn+R3=C475J~;X zf)A!^g>x}5XaTV%5dQ_rJOJWdKwJaFc|e>C#GXJb#krZ0#e!q9ytlyQf|ml5C)^I0 zT<6y~x$=_U;I)f#}Kd-U5>owsC{8fho)63AY0# a*ZDP0{{2#Ka=>+t$?GraZ{GRJofQB9MJsIp diff --git a/egs/tedlium2/ASR/conformer_ctc3/train.py b/egs/tedlium2/ASR/conformer_ctc3/train.py index 2b06f642d..ad3479990 100755 --- a/egs/tedlium2/ASR/conformer_ctc3/train.py +++ b/egs/tedlium2/ASR/conformer_ctc3/train.py @@ -675,6 +675,9 @@ def compute_loss( ctc_loss = (1-params.interctc_weight) * ctc_loss + params.interctc_weight * inter_ctc_loss if not params.interctc and not params.condition: + if type(nnet_output) == tuple: + nnet_output = nnet_output[0] + dense_fsa_vec = k2.DenseFsaVec( nnet_output, supervision_segments,