Skip to content

Commit fef6b9e

Browse files
committedDec 26, 2024
minor fixes for compile onnxruntime and run silero
1 parent 163d9a2 commit fef6b9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎onnxruntime_vendor/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install(DIRECTORY ${ONNXRUNTIME_INSTALL_DIR}/lib)
3030
install(DIRECTORY ${ONNXRUNTIME_INSTALL_DIR}/include)
3131

3232
# Export the onnxruntime library for downstream packages
33-
ament_export_include_directories(${ONNXRUNTIME_INSTALL_DIR}/include)
33+
ament_export_include_directories(include)
3434
ament_export_libraries(onnxruntime)
3535

3636
# Export the package

‎whisper_ros/src/silero_vad/vad_iterator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Timestamp VadIterator::predict(const std::vector<float> &data) {
106106
std::copy(updated_state, updated_state + this->state.size(),
107107
this->state.begin());
108108

109-
for (int i = 63; i >= 0; i--) {
109+
for (int i = 64; i > 0; i--) {
110110
this->context.push_back(data.at(data.size() - i));
111111
}
112112

0 commit comments

Comments
 (0)