Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
98994c6
Add initial script for building onnx-runtime.
xaviliz Jun 16, 2025
4e92dc0
Modify wscript for onnx flag.
xaviliz Jun 19, 2025
d673012
Define algos for onnx-runtime and create --with-onnx flag.
xaviliz Jun 20, 2025
4246f5b
Support --with-onnx
xaviliz Jun 20, 2025
9720e28
Rename library to be detected by pkg-config
xaviliz Jun 23, 2025
d60385e
Add initial onnxpredict.cpp files.
xaviliz Jun 23, 2025
3bb07a9
Provide a constructor and solve some errors.
xaviliz Jul 8, 2025
90da5d4
Fix status errors.
xaviliz Jul 8, 2025
7d357be
Update ONNX Runtime versioning
xaviliz Sep 1, 2025
56da948
Support for MacOS building at arm64
xaviliz Sep 1, 2025
d9c8a49
Support for multi IO models
xaviliz Sep 1, 2025
d136388
Except OnnxPredict algorithm to use pool in cpp
xaviliz Sep 1, 2025
f46d481
First onnx runtime unittest with effnet model
xaviliz Sep 1, 2025
4798b8b
Merge branch 'master' into feat/onnx-predict
xaviliz Sep 1, 2025
bce71f9
Add support for building onnxruntime in Linux.
xaviliz Sep 2, 2025
28da0a9
Save onnxruntime files after building
xaviliz Sep 3, 2025
0da9800
Copy all dynamic library files
xaviliz Sep 4, 2025
88787a2
Fix stem in audio path
xaviliz Sep 4, 2025
1ee0fe6
Clean and update the parameter declaration
xaviliz Sep 5, 2025
83ed01d
Small clean
xaviliz Sep 5, 2025
5a300fc
Fix issue in the EssentiaExceptions for name parsing.
xaviliz Sep 5, 2025
4f7955c
Add TestIONameParser()
xaviliz Sep 5, 2025
29d0e2b
Adapt testEmptyModelName() unittest
xaviliz Sep 5, 2025
2655a03
Add testInvalidParams() as unitest
xaviliz Sep 9, 2025
2c42e91
Update effnetdiscogs-bsdynamic-1.onnx location
xaviliz Sep 9, 2025
c766952
Throw EssentiaException for empty model names.
xaviliz Sep 9, 2025
35b0228
Updated test/models submodule
xaviliz Sep 15, 2025
4302cb9
Updated test/audio submodule
xaviliz Sep 15, 2025
9a09d95
Polish ORT building command for MacOS
xaviliz Sep 15, 2025
b552601
Initial support for multi input models
xaviliz Sep 15, 2025
a5268cc
Add testIdentityModel()
xaviliz Sep 16, 2025
e21cca1
Fix issues with multi input data models
xaviliz Sep 16, 2025
64a86cb
Small clean
xaviliz Sep 16, 2025
e206845
Assert testInference() with input and output shapes
xaviliz Sep 17, 2025
d246e28
Add testComputeWithoutConfiguration() unittest
xaviliz Sep 17, 2025
86c64eb
Add testIgnoreInvalidReconfiguration() as unittest
xaviliz Sep 17, 2025
459652e
Add testInvalidSqueezeConfiguration() as unittest
xaviliz Sep 17, 2025
30abf8a
Add testConfigure() as unittest
xaviliz Sep 17, 2025
6fa1780
Add testConfigure() as unittest
xaviliz Sep 17, 2025
46727b7
Fix issue in testIgnoreInvalidReconfiguration() for Linux
xaviliz Sep 17, 2025
7193415
Clean and small change
xaviliz Sep 18, 2025
509b991
Remove MacOS support
xaviliz Sep 23, 2025
00c09ee
Clean debug output
xaviliz Sep 23, 2025
6dc8f55
Skip saving the optimized graph
xaviliz Sep 23, 2025
881fe48
Set to 0 the intraop number of threads
xaviliz Sep 23, 2025
cac1cb4
Improve setTensorInfos() for readablity
xaviliz Sep 23, 2025
6b971f6
Raise an exception if no input is provided
xaviliz Sep 23, 2025
1f8f0fb
Small clean
xaviliz Sep 26, 2025
679b2fb
Fix testInference() unitest after declaring inputs as mandatory param…
xaviliz Sep 26, 2025
31b7964
Small change
xaviliz Sep 26, 2025
e2c6c2a
Excepts when no outputs are defined
xaviliz Sep 26, 2025
f86fd52
Clean unused checkers for inputs and outputs
xaviliz Sep 26, 2025
59ae04e
Replace std::cout by E_INFO()
xaviliz Sep 26, 2025
108ee4c
Add onnxruntime library in the Debian building pipeline.
xaviliz Oct 2, 2025
442bae5
Configure GPU providers dynamically
xaviliz Oct 2, 2025
580a62c
Handle parallel computational providers with macros to avoid errors w…
xaviliz Oct 3, 2025
382dd17
Support for resetting Ort::Session and Ort::SessionOption
xaviliz Oct 3, 2025
8e137b3
Check input and output nodes before any computating
xaviliz Oct 3, 2025
37e6912
Reset Ort::Session and Ort::SessionOptions for each configure()
xaviliz Oct 3, 2025
1cdcb2b
Create Ort::Env once per application and reuse it for all sessions
xaviliz Oct 3, 2025
74a585b
Add deviceId parameter to specify gpu id for inferencing when CUDA, M…
xaviliz Oct 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packaging/build_3rdparty_static_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cd $BASEDIR/debian_3rdparty
./build_taglib.sh
./build_yaml.sh
./build_chromaprint.sh
./build_onnx.sh

#!/usr/bin/env bash
if [[ "$*" == *--with-gaia* ]]
Expand Down
4 changes: 2 additions & 2 deletions packaging/build_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

HOST=i686-w64-mingw32
if [ -z "${PREFIX}" ]; then
PREFIX=`pwd`
PREFIX=$(pwd)
fi
echo Installing to: $PREFIX

Expand All @@ -28,7 +28,7 @@ CHROMAPRINT_VERSION=1.4.3
QT_SOURCE_URL=https://download.qt.io/archive/qt/4.8/4.8.4/qt-everywhere-opensource-src-4.8.4.tar.gz
GAIA_VERSION=2.4.6-86-ged433ed
TENSORFLOW_VERSION=2.5.0

LIBONNXRUNTIME_VERSION=1.22.1

FFMPEG_AUDIO_FLAGS="
--disable-programs
Expand Down
45 changes: 45 additions & 0 deletions packaging/debian_3rdparty/build_onnx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/env bash
set -e
. ../build_config.sh

rm -rf tmp
mkdir tmp
cd tmp

# Prerequisites: python>=3.10
# cmake>=3.28

echo "Building onnxruntime $LIBONNXRUNTIME_VERSION"

curl -SLO "https://github.com/microsoft/onnxruntime/archive/refs/tags/v$LIBONNXRUNTIME_VERSION.tar.gz"

tar -xf v$LIBONNXRUNTIME_VERSION.tar.gz
cd onnxruntime-$LIBONNXRUNTIME_VERSION

python3 -m pip install cmake

# Build the dynamic library
./build.sh \
--config Release \
--build_shared_lib \
--parallel \
--compile_no_warning_as_error \
--skip_submodule_sync \
--allow_running_as_root \
--skip_tests \
--cmake_extra_defines FETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER CMAKE_INSTALL_PREFIX=${PREFIX}

# copying onnxruntime files
mkdir -p "${PREFIX}"/lib/pkgconfig/
mkdir -p "${PREFIX}"/include/onnxruntime/

cp build/Linux/Release/libonnxruntime.pc ${PREFIX}/lib/pkgconfig/
cp -r build/Linux/Release/libonnxruntime.so* ${PREFIX}/lib/

cp include/onnxruntime/core/session/onnxruntime_cxx_inline.h ${PREFIX}/include/onnxruntime/
cp include/onnxruntime/core/session/onnxruntime_float16.h ${PREFIX}/include/onnxruntime/
cp include/onnxruntime/core/session/onnxruntime_c_api.h ${PREFIX}/include/onnxruntime/
cp include/onnxruntime/core/session/onnxruntime_cxx_api.h ${PREFIX}/include/onnxruntime/

cd ../..
rm -fr tmp
Loading
Loading