| | |
| | | |
| | | try{ |
| | | m_session = std::make_unique<Ort::Session>(env_, punc_model.c_str(), session_options); |
| | | LOG(INFO) << "Successfully load model from " << punc_model; |
| | | } |
| | | catch (std::exception const &e) { |
| | | LOG(ERROR) << "Error when load punc onnx model: " << e.what(); |
| | |
| | | |
| | | try { |
| | | m_session = std::make_unique<Ort::Session>(env_, am_model.c_str(), session_options); |
| | | LOG(INFO) << "Successfully load model from " << am_model; |
| | | } catch (std::exception const &e) { |
| | | LOG(ERROR) << "Error when load am onnx model: " << e.what(); |
| | | exit(0); |
| | |
| | | } |
| | | } |
| | | if (wait) { |
| | | LOG(INFO) << "wait.." << m_open; |
| | | // LOG(INFO) << "wait.." << m_open; |
| | | WaitABit(); |
| | | continue; |
| | | } |
| | |
| | | false, 1, "int"); |
| | | TCLAP::ValueArg<int> is_ssl_( |
| | | "", "is-ssl", "is-ssl is 1 means use wss connection, or use ws connection", |
| | | false, 0, "int"); |
| | | false, 1, "int"); |
| | | |
| | | cmd.add(server_ip_); |
| | | cmd.add(port_); |