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

Windows编译成功,但runtime异常退出 #2665

Open
ljyljy opened this issue Dec 24, 2024 · 0 comments
Open

Windows编译成功,但runtime异常退出 #2665

ljyljy opened this issue Dec 24, 2024 · 0 comments

Comments

@ljyljy
Copy link

ljyljy commented Dec 24, 2024

Describe the bug
Windows编译成功,但runtime异常退出

To Reproduce
1、编译成功后,设置用户变量:
GLOG_v、GLOG_logtostderr

2、使用绝对/相对路径执行decoder_main.exe,均【异常退出】:

cd wenet\runtime\libtorch\build


(wenet) PS D:\codes\ASR\wenet\runtime\libtorch\build> 
.\bin\Debug\decoder_main.exe --wav_path ../audio.wav --model_path ../model/aishell_u2pp_conformer_libtorch/final.zip --unit_path ../model/aishell_u2pp_conformer_libtorch/units.txt --chunk_size -1

I1224 10:33:54.302191 41064 params.h:179] Reading torch model ../model/aishell_u2pp_conformer_libtorch/final.zip
I1224 10:33:54.342228 41064 torch_asr_model.cc:35] Num intra-op threads: 1**【异常退出】**
(wenet) PS D:\codes\ASR\wenet\runtime\libtorch\build> 

Expected behavior
docker 可以正常运行:

root@95caff5da6a2:/home/wenet/runtime/libtorch# export GLOG_logtostderr=1
export GLOG_v=2
wav_path=/home/audio.wav
model_dir=/home/20210618_u2pp_conformer_libtorch
./build/bin/decoder_main \
    --chunk_size -1 \
    --wav_path $wav_path \
    --model_path $model_dir/final.zip \
    --unit_path $model_dir/units.txt 2>&1 | tee log.txt
I1224 01:39:16.254335    67 params.h:155] Reading torch model /home/20210618_u2pp_conformer_libtorch/final.zip
I1224 01:39:16.291038    67 torch_asr_model.cc:34] Num intra-op threads: 1
I1224 01:39:16.503631    67 torch_asr_model.cc:69] Torch Model Info:
I1224 01:39:16.503670    67 torch_asr_model.cc:70]      subsampling_rate 4
I1224 01:39:16.503672    67 torch_asr_model.cc:71]      right context 6
I1224 01:39:16.503674    67 torch_asr_model.cc:72]      sos 5234
I1224 01:39:16.503674    67 torch_asr_model.cc:73]      eos 5234
I1224 01:39:16.503675    67 torch_asr_model.cc:74]      is bidirectional decoder 1
I1224 01:39:16.503677    67 params.h:197] Reading unit table /home/20210618_u2pp_conformer_libtorch/units.txt
I1224 01:39:16.515591    90 decoder_main.cc:54] num frames 951
I1224 01:39:16.515684    90 asr_decoder.cc:104] Required 2147483647 get 951
I1224 01:39:17.051752    90 asr_decoder.cc:200] Partial CTC result 今天天气怎么样明呢后天呢
I1224 01:39:17.051872    90 asr_decoder.cc:200] Partial CTC result 今天天气怎么样明呢后天呢
I1224 01:39:17.169639    90 asr_decoder.cc:84] Rescoring cost latency: 117ms.
I1224 01:39:17.169687    90 decoder_main.cc:72] Partial result: 今天天气怎么样明天呢后天呢
I1224 01:39:17.169690    90 decoder_main.cc:104] test Final result: 今天天气怎么样明天呢后天呢
I1224 01:39:17.169692    90 decoder_main.cc:105] Decoded 9525ms audio taken 654ms.
test 今天天气怎么样明天呢后天呢
I1224 01:39:17.169960    67 decoder_main.cc:180] Total: decoded 9525ms audio taken 654ms.
I1224 01:39:17.169973    67 decoder_main.cc:182] RTF: 0.06866

Desktop (please complete the following information):

  • Windows
  • VS 2022
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