Skip to content

Computes the MWER (minimum WER) Loss with CTC beam search. Knowledge distillation for CTC loss.

Notifications You must be signed in to change notification settings

zw76859420/CTC-OptimizedLoss

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTC-OptimizedLoss

Some loss optimized for CTC:

  • MWER (minimum WER) Loss with CTC beam search.
  • Knowledge distillation for CTC loss.
  • KL divergence loss for label smoothing.

Example

weight = 0.01 # interpolation weight
beam_width = 8 # N-best

mwer_loss = CTCMWERLoss(beam_width=beam_width)(
    ctc_logits, ctc_labels, ctc_label_length, logit_length)

ctc_loss = CTCLoss()(
    ctc_logits, ctc_labels, ctc_label_length, logit_length)

loss = mwer_loss + weight*ctc_loss

Reference

About

Computes the MWER (minimum WER) Loss with CTC beam search. Knowledge distillation for CTC loss.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%