Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asr score error #182

Open
zh794390558 opened this issue Nov 5, 2020 · 0 comments
Open

asr score error #182

zh794390558 opened this issue Nov 5, 2020 · 0 comments

Comments

@zh794390558
Copy link
Contributor

zh794390558 commented Nov 5, 2020

76 [1:12:36<33:46,  1.04it/s]Traceback (most recent call last):
  File "neural_sp/examples/aishell/s5/../../../neural_sp/bin/asr/eval.py", line 235, in <module>
    main()
  File "neural_sp/examples/aishell/s5/../../../neural_sp/bin/asr/eval.py", line 183, in main
    task_idx=0)
  File "neural_sp/neural_sp/evaluators/character.py", line 92, in eval_char
    ensemble_models=models[1:] if len(models) > 1 else [])
  File "neural_sp/neural_sp/models/seq2seq/speech2text.py", line 741, in decode
    ensmbl_eouts, ensmbl_elens, ensmbl_decs)
  File "neural_sp/neural_sp/models/seq2seq/decoders/transformer.py", line 883, in beam_search
    rightmost_frame = max(0, aws_last_success[0, :, 0].nonzero()[:, -1].max().item()) + 1
RuntimeError: invalid argument 1: cannot perform reduction function max on tensor with no elements because the operation does not have an identity at /pytorch/aten/src/THC/generic/THCTensorMathReduce.cu:85
 71%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                 | 5069/7176 [1:12:38<30:11,  1.16it/s]

cmmond:

./local/score.sh --gpu 7 --model egs/asr/train_sp/conv2Ltransformer256dmodel2048dff12L4Hpeadd_max_pool8_transformer256dmodel2048dff6L4Hpe1dconv3Lmocha_ma4H_ca4H_w16_bias-2.0_share_from4L_HD0.5_noam_lr5.0_bs32_ls0.1_warmup25000_accum8_ctc0.3/model.epoch-25

dataset:

aishell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant