diff --git a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/0003-check-vela-return-code.patch b/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/0003-check-vela-return-code.patch index b4172821d..7823d7ac0 100644 --- a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/0003-check-vela-return-code.patch +++ b/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/0003-check-vela-return-code.patch @@ -8,10 +8,10 @@ Signed-off-by: Isaac Hermida 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/download_models.py b/download_models.py -index 462f7b755eea..fc5ab234ae47 100644 +index 30c660fe4477..2e60f42c17a2 100644 --- a/download_models.py +++ b/download_models.py -@@ -103,7 +103,11 @@ def convert_model(model_dir, vela_dir): +@@ -96,7 +96,11 @@ def convert_model(model_dir, vela_dir): if name.endswith(".tflite"): print('Converting', name) model = os.path.join(model_dir, name) diff --git a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/0004-use-local-copy-of-ssd_mobilenet_v1_quant-model.patch b/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/0004-use-local-copy-of-ssd_mobilenet_v1_quant-model.patch deleted file mode 100644 index 136eaa26a..000000000 --- a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/0004-use-local-copy-of-ssd_mobilenet_v1_quant-model.patch +++ /dev/null @@ -1,29 +0,0 @@ -From: Isaac Hermida -Date: Tue, 25 Feb 2025 12:32:45 +0000 -Subject: [PATCH] use local copy of ssd_mobilenet_v1_quant model - -This model is broken, and the Vela conversion is failing. -Until it is fixed, use a locally working copy. - -Signed-off-by: Isaac Hermida ---- - download_models.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/download_models.py b/download_models.py -index ba1cce726e25..411538a19662 100644 ---- a/download_models.py -+++ b/download_models.py -@@ -67,9 +67,9 @@ def download_all_models(model_dir, vela_dir): - - #Download object detection model - #https://www.tensorflow.org/ -- url = 'https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/ssd_mobilenet_v1/1/metadata/2.tflite' -- path = os.path.join(model_dir, 'ssd_mobilenet_v1_quant.tflite') -- download_file('object detection', url, path) -+ # url = 'https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/ssd_mobilenet_v1/1/metadata/2.tflite' -+ # path = os.path.join(model_dir, 'ssd_mobilenet_v1_quant.tflite') -+ # download_file('object detection', url, path) - - #Download image classification model - #https://www.tensorflow.org/ diff --git a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/ssd_mobilenet_v1_quant.tflite b/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/ssd_mobilenet_v1_quant.tflite deleted file mode 100644 index be3b96b7c..000000000 Binary files a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/ssd_mobilenet_v1_quant.tflite and /dev/null differ diff --git a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/ssd_mobilenet_v1_quant_vela.tflite b/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/ssd_mobilenet_v1_quant_vela.tflite deleted file mode 100644 index f3c42c618..000000000 Binary files a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples/ssd_mobilenet_v1_quant_vela.tflite and /dev/null differ diff --git a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples_git.bbappend b/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples_git.bbappend index c6964f1fb..e851d0636 100644 --- a/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples_git.bbappend +++ b/meta-digi-dey/dynamic-layers/imx-machine-learning/recipes-libraries/eiq-examples/eiq-examples_git.bbappend @@ -12,9 +12,6 @@ SRC_URI += " \ file://0001-Customize-EiQ-demos.patch \ file://0002-improvements-capture-x-windows-and-increase-resoluti.patch \ file://0003-check-vela-return-code.patch \ - file://0004-use-local-copy-of-ssd_mobilenet_v1_quant-model.patch \ - file://ssd_mobilenet_v1_quant.tflite \ - file://ssd_mobilenet_v1_quant_vela.tflite \ file://scripts/launch_eiq_demo.sh \ file://service/eiqdemo.service \ " @@ -46,14 +43,12 @@ do_install () { for archive in "${S}/${MODELS_DIR}"/*.tflite; do cp "${archive}" "${D}${bindir}/${PN}-${PV}/${MODELS_DIR}" done - cp ${WORKDIR}/ssd_mobilenet_v1_quant.tflite "${D}${bindir}/${PN}-${PV}/${MODELS_DIR}" # Install the transformed Vela models. install -d "${D}${bindir}/${PN}-${PV}/${VELA_MODELS_DIR}" for archive in "${S}/${VELA_MODELS_DIR}"/*.tflite; do cp "${archive}" "${D}${bindir}/${PN}-${PV}/${VELA_MODELS_DIR}" done - cp ${WORKDIR}/ssd_mobilenet_v1_quant_vela.tflite "${D}${bindir}/${PN}-${PV}/${VELA_MODELS_DIR}" # Install the launch script. install -d ${D}${sysconfdir}/demos/scripts