snowfall icon indicating copy to clipboard operation
snowfall copied to clipboard

about error of asg_train.py

Open shanguanma opened this issue 4 years ago • 5 comments

I follow librispeech/asr/simple_v1/ recipe example, and rebuild k2 newest master(2021-1-4). When I run python3 asg_train.py , It gives the following error:

scores: tensor([ 1.9269,  1.4873,  0.9007,  ...,  0.0990, -1.0238, -1.6546])
scores shape is :  torch.Size([52899])
Traceback (most recent call last):
  File "asg_train.py", line 430, in <module>
    main()
  File "asg_train.py", line 297, in main
    P.set_scores_stochastic_(scores)
TypeError: set_scores_stochastic_() takes 1 positional argument but 2 were given

I think it is a bug.

shanguanma avatar Jan 04 '21 14:01 shanguanma

Please refer to https://github.com/k2-fsa/snowfall/pull/62#issuecomment-753284760

csukuangfj avatar Jan 04 '21 15:01 csukuangfj

~Please use https://github.com/k2-fsa/k2/pull/563~ ~It has not been merged yet.~


Please use the latest k2, i.e., its master branch.

csukuangfj avatar Jan 04 '21 15:01 csukuangfj

OK, thanks, I will try it.

shanguanma avatar Jan 04 '21 15:01 shanguanma

Could you please post your result here when the decoding is done? Just want to make sure that ASG training can be reproduced.

csukuangfj avatar Jan 04 '21 15:01 csukuangfj

Could you please post your result here when the decoding is done? Just want to make sure that ASG training can be reproduced.

Yes, of course. Once completed, I will summarize the results here.

shanguanma avatar Jan 05 '21 02:01 shanguanma