eiq-examples: update for NXP's lf-6.6.52-2.2.2 release
Removed not needed patch and refreshed the rest. https://onedigi.atlassian.net/browse/DEL-9905 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
4f9f4b113e
commit
70ec1a8630
|
|
@ -8,10 +8,10 @@ Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
From: Isaac Hermida <isaac.hermida@digi.com>
|
||||
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 <isaac.hermida@digi.com>
|
||||
---
|
||||
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/
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue