Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool committed Nov 21, 2024
1 parent 3bd4a2e commit 3698ca0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions egs/libriheavy/ASR/zipformer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,13 +471,6 @@ def get_parser():
help="When using cr-ctc, we increase the time-masking ratio.",
)

parser.add_argument(
"--cr-loss-masked-scale",
type=float,
default=1.0,
help="The value used to scale up the cr_loss at masked positions",
)

parser.add_argument(
"--attention-decoder-loss-scale",
type=float,
Expand Down Expand Up @@ -966,9 +959,8 @@ def compute_loss(
spec_augment=spec_augment,
supervision_segments=supervision_segments,
time_warp_factor=params.spec_aug_time_warp_factor,
cr_loss_masked_scale=params.cr_loss_masked_scale,
)
simple_loss, pruned_loss, ctc_loss = losses[:3]
simple_loss, pruned_loss, ctc_loss, attention_decoder_loss, cr_loss = losses[:5]

loss = 0.0

Expand Down

0 comments on commit 3698ca0

Please sign in to comment.