-
Notifications
You must be signed in to change notification settings - Fork 5
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
The shape of probs_seq does not match with the shape of the vocabulary Segmentation fault (core dumped) #9
Comments
I'm running “CTC with DSLP” code python3 train.py data-bin/wmt14.en-de_kd --source-lang en --target-lang de --save-dir checkpoints --eval-tokenized-bleu |
FATAL: "(probs_seq[i].size()) == (vocabulary.size())" check failed. The shape of probs_seq does not match with the shape of the vocabulary I encountered this problem when running GLAT+CTC+SD and CTC+SD codes. |
Hello, @thunder123321 Unfortunately, there is not enough information for me to tell what went wrong in your setup. BTW, I just tested a clean clone of the repo with your script, and it works on my side. |
Actually, the ctcdecode is only used as a post-processing in the final version, as I only used beam size 1. However, you need to do some post-process here: DSLP/fairseq/models/nat/nat_ctc_sd_ss.py Line 507 in a9d3ee1
You may incorporate this function:
|
Hi. @chenyangh Thank you very much for answering my question. I noticed that the two post-processing functions you mentioned appear in generation.py file. Does that mean I just add the -- plain-ctc parameter? When I added the -- plain-ctc parameter in my experiment, I found that the memory footprint was higher. “ctcdecode” is used to reduce memory footprint. |
Hi, @thunder123321 In terms of memory consumption, I am not sure if that is caused by the |
[/home/nihao/nihao-users2/yuhao/DSLP/env/ctcdecode/ctcdecode/src/ctc_beam_search_decoder.cpp:32] FATAL: "(probs_seq[i].size()) == (vocabulary.size())" check failed. The shape of probs_seq does not match with the shape of the vocabulary
[/home/nihao/nihao-users2/yuhao/DSLP/env/ctcdecode/ctcdecode/src/ctc_beam_search_decoder.cpp:32] FATAL: "(probs_seq[i].size()) == (vocabulary.size())" check failed. The shape of probs_seq does not match with the shape of the vocabulary
[/home/nihao/nihao-users2/yuhao/DSLP/env/ctcdecode/ctcdecode/src/ctc_beam_search_decoder.cpp:32] FATAL: "(probs_seq[i].size()) == (vocabulary.size())" check failed. The shape of probs_seq does not match with the shape of the vocabulary
Segmentation fault (core dumped)
I have encountered such a problem, I have not modified the original code, may I ask what is the problem
The text was updated successfully, but these errors were encountered: