From 389eeec9ae2422e155dcb047f4ae4689aa7c9de0 Mon Sep 17 00:00:00 2001 From: Wei Loon Cheng Date: Mon, 18 Sep 2023 17:39:25 +0800 Subject: [PATCH] Hot fixes v0.5.8 (#162) * Fixed same file error for Windows release build * Fixed TF inference error --- .github/workflows/release-workflow.yml | 3 ++- src/engine/server/models/model_utils/predict.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index 67f9569..05a04fb 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -59,7 +59,8 @@ jobs: pyinstaller --collect-data ultralytics --hidden-import pydicom.encoders.gdcm --hidden-import pydicom.encoders.pylibjpeg --hidden-import engineio.async_drivers.threading -F run.py --distpath ../../portal_build/dist if [ -f ../../portal_build/dist/run ]; then chmod u+x ../../portal_build/dist/run - mv ../../portal_build/dist/run ../../portal_build/dist/run.exe + else + chmod u+x ../../portal_build/dist/run.exe fi chmod u+x ../../portal_build/dist/run.exe diff --git a/src/engine/server/models/model_utils/predict.py b/src/engine/server/models/model_utils/predict.py index be13e7d..70e28cf 100644 --- a/src/engine/server/models/model_utils/predict.py +++ b/src/engine/server/models/model_utils/predict.py @@ -127,3 +127,4 @@ def tf_predict(model, model_format, output_name, image_array): detections_output = bboxes, masks, scores, classes else: detections_output = np.array(detections_output[output_name][0]) + return detections_output