wenet-e2e / wespeaker

Research and Production Oriented Speaker Verification, Recognition and Diarization Toolkit
Apache License 2.0
664 stars 112 forks source link

windows 编译有错误 #203

Closed zuowanbushiwo closed 11 months ago

zuowanbushiwo commented 11 months ago

你好,我这边Windows编译出现如下错误:

       行 523: ..\speaker\speaker_engine.cc(163): error C2039: "inner_product": 不是 "std" 的成员
    行 525: ..\speaker\speaker_engine.cc(163): error C3861: “inner_product”: 找不到标识符
    行 526: ..\speaker\speaker_engine.cc(164): error C2039: "inner_product": 不是 "std" 的成员
    行 528: ..\speaker\speaker_engine.cc(164): error C3861: “inner_product”: 找不到标识符
    行 529: ..\speaker\speaker_engine.cc(166): error C2039: "inner_product": 不是 "std" 的成员
    行 531: ..\speaker\speaker_engine.cc(166): error C3861: “inner_product”: 找不到标识符
    行 558: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xutility(149): error C2664: “Ort::Session::Session(Ort::Env &,const wchar_t *,const Ort::SessionOptions &)”: 无法将参数 2 从“_Ty”转换为“const wchar_t *”

前面的错误可以通过 #include <numeric>这个头文件解决, 但是后面的错误应该是这行代码导致的:

  speaker_session_ = std::make_shared<Ort::Session>(env_, model_path.c_str(),
                                                      session_options_);

看样子是api 不对? 谢谢!

cdliang11 commented 11 months ago

是的,方便提个pr吗 https://github.com/wenet-e2e/wenet/blob/a7931ac212c4f28112874ca80cde3588ffedda4e/runtime/core/decoder/onnx_asr_model.cc#L86

参考这个代码改一下 :)

zuowanbushiwo commented 11 months ago

感谢,已经提交了。

cdliang11 commented 11 months ago

https://github.com/wenet-e2e/wespeaker/pull/204