From 899d558c2dfd28cf9e330dfca760b41f4cab1aad Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Fri, 19 Jul 2024 22:34:22 +0200 Subject: [PATCH] fix tensorflow setup libs issue --- build_alpr_api.sh | 2 +- build_and_setup_ultimatealvr.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build_alpr_api.sh b/build_alpr_api.sh index 2c8925f..97cc8ab 100755 --- a/build_alpr_api.sh +++ b/build_alpr_api.sh @@ -1 +1 @@ -pyinstaller --noconfirm --onefile --console --add-data libs:. --add-data assets:assets --add-data static:static --add-data templates:templates --name easy-local-alpr-1.0.0-linux_x86_64 "alpr_api.py" +pyinstaller --noconfirm --onefile --console --add-data libs:. --add-data assets:assets --add-data static:static --add-data templates:templates --name easy-local-alpr-1.1.0-openvinocpu_linux_x86_64 "alpr_api.py" diff --git a/build_and_setup_ultimatealvr.sh b/build_and_setup_ultimatealvr.sh index 7980709..5de5e38 100755 --- a/build_and_setup_ultimatealvr.sh +++ b/build_and_setup_ultimatealvr.sh @@ -139,8 +139,8 @@ else tar -xf libtensorflow-cpu-linux-x86_64-2.6.0.tar.gz -C "$BIN_DIR/tensorflow" >/dev/null 2>&1 fi -mv "$BIN_DIR/tensorflow/lib/"* "$BIN_DIR/libs/" -cp "$BIN_DIR/libs/libtensorflow.so.2" "$BIN_DIR/libs/libtensorflow.so.1" +mv "$BIN_DIR/tensorflow/lib/libtensorflow.so.1" "$BIN_DIR/libs/libtensorflow.so.1" +mv "$BIN_DIR/tensorflow/lib/libtensorflow_framework.so.2.6.0" "$BIN_DIR/libs/libtensorflow_framework.so.2" # Build the wheel echo "Building the wheel..."