mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
bb79746dcb
commit
d147c29015
Binary file not shown.
@ -835,7 +835,7 @@ def compute_loss(
|
||||
|
||||
#texts = batch["supervisions"]["text"]
|
||||
texts = []
|
||||
for utt_id in
|
||||
for utt_id in
|
||||
|
||||
token_ids = sp.encode(texts, out_type=int)
|
||||
y = k2.RaggedTensor(token_ids).to(device)
|
||||
@ -1595,6 +1595,7 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
pl[text[0]] = ' '.join(text[1:])
|
||||
|
||||
pl_texts = pl
|
||||
|
||||
def remove_short_and_long_utt(c: Cut):
|
||||
return 1.0 <= c.duration <= 20.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user