lyblsgo
2023-04-25 6ef5ccc784d9f7fcd4072dd83c6ceaf1c324b92c
check am.mvn exists
2个文件已修改
6 ■■■■ 已修改文件
funasr/runtime/onnxruntime/src/funasr-onnx-offline-rtf.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/onnxruntime/src/paraformer.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/onnxruntime/src/funasr-onnx-offline-rtf.cpp
@@ -144,7 +144,7 @@
    if(model_path.find(WAV_SCP)!=model_path.end()){
        ifstream in(model_path.at(WAV_SCP));
        if (!in.is_open()) {
            LOG(ERROR) << ("Failed to open file: %s", model_path.at(WAV_SCP));
            LOG(ERROR) << "Failed to open file: " << model_path.at(WAV_SCP);
            return 0;
        }
        string line;
funasr/runtime/onnxruntime/src/paraformer.cpp
@@ -147,6 +147,10 @@
void Paraformer::LoadCmvn(const char *filename)
{
    ifstream cmvn_stream(filename);
    if (!cmvn_stream.is_open()) {
        LOG(ERROR) << "Failed to open file: " << filename;
        exit(0);
    }
    string line;
    while (getline(cmvn_stream, line)) {