Discussion:
[meta-arago] [matrix-gui-v2-apps][PATCH 2/2] tidl_apps: added Arm NN Matrix GUI demo examples
Qin Su
2018-12-06 21:58:36 UTC
Permalink
Added two Arm NN demo examples with MobileNet network topology.
One example with live camera input and the other with video clip input.

Signed-off-by: Qin Su <***@ti.com>
---
tidl_apps/armnn_demo_livecam/armnn_demo_livecam.desktop | 9 +++++++++
tidl_apps/armnn_demo_livecam/desc_armnn_demo_livecam.html | 5 +++++
tidl_apps/armnn_demo_livecam/runArmnnLiveCam.sh | 3 +++
tidl_apps/armnn_demo_staticimg/armnn_demo_staticimg.desktop | 9 +++++++++
tidl_apps/armnn_demo_staticimg/desc_armnn_demo_staticimg.html | 5 +++++
tidl_apps/armnn_demo_staticimg/runArmnnStaticImg.sh | 3 +++
6 files changed, 34 insertions(+)
create mode 100644 tidl_apps/armnn_demo_livecam/armnn_demo_livecam.desktop
create mode 100644 tidl_apps/armnn_demo_livecam/desc_armnn_demo_livecam.html
create mode 100644 tidl_apps/armnn_demo_livecam/runArmnnLiveCam.sh
create mode 100644 tidl_apps/armnn_demo_staticimg/armnn_demo_staticimg.desktop
create mode 100644 tidl_apps/armnn_demo_staticimg/desc_armnn_demo_staticimg.html
create mode 100644 tidl_apps/armnn_demo_staticimg/runArmnnStaticImg.sh

diff --git a/tidl_apps/armnn_demo_livecam/armnn_demo_livecam.desktop b/tidl_apps/armnn_demo_livecam/armnn_demo_livecam.desktop
new file mode 100644
index 0000000..9317cb8
--- /dev/null
+++ b/tidl_apps/armnn_demo_livecam/armnn_demo_livecam.desktop
@@ -0,0 +1,9 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Name=Arm NN MobileNet Camera Input
+Icon=/usr/share/matrix-gui-2.0/apps/images/tidl-icon.png
+Exec=runArmnnLiveCam.sh
+Type=Application
+ProgramType=gui
+Categories=tidl
+X-Matrix-Description=/usr/share/matrix-gui-2.0/apps/armnn_demo_livecam/desc_armnn_demo_livecam.html
diff --git a/tidl_apps/armnn_demo_livecam/desc_armnn_demo_livecam.html b/tidl_apps/armnn_demo_livecam/desc_armnn_demo_livecam.html
new file mode 100644
index 0000000..db0c2bb
--- /dev/null
+++ b/tidl_apps/armnn_demo_livecam/desc_armnn_demo_livecam.html
@@ -0,0 +1,5 @@
+<h1>Arm NN Demo with Live Camera Input</h1>
+<h2>Purpose:</h2>
+<p>This application demonstrates Deep Learning Imagenet classification (1000 classes) with MobileNet network topology based on Arm NN SDK.</p>
+<p>Single Arm core is used with live camera input (at 640x480 resolution).</p>
+<p>Exit demo by doing right-click on image window.</p>
diff --git a/tidl_apps/armnn_demo_livecam/runArmnnLiveCam.sh b/tidl_apps/armnn_demo_livecam/runArmnnLiveCam.sh
new file mode 100644
index 0000000..68007f3
--- /dev/null
+++ b/tidl_apps/armnn_demo_livecam/runArmnnLiveCam.sh
@@ -0,0 +1,3 @@
+cd /usr/bin
+
+./ArmnnExamples -f tensorflow-binary -i input -s '1 224 224 3' -o MobilenetV1/Predictions/Reshape_1 -d /usr/share/arm/armnn/testvecs/camera_live_input -m /usr/share/arm/armnn/models/mobilenet_v1_1.0_224_frozen.pb -c CpuAcc --number_frame 999900
diff --git a/tidl_apps/armnn_demo_staticimg/armnn_demo_staticimg.desktop b/tidl_apps/armnn_demo_staticimg/armnn_demo_staticimg.desktop
new file mode 100644
index 0000000..7d7a1a7
--- /dev/null
+++ b/tidl_apps/armnn_demo_staticimg/armnn_demo_staticimg.desktop
@@ -0,0 +1,9 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Name=Arm NN MobileNet Real Common Objects
+Icon=/usr/share/matrix-gui-2.0/apps/images/tidl-icon.png
+Exec=runArmnnStaticImg.sh
+Type=Application
+ProgramType=gui
+Categories=tidl
+X-Matrix-Description=/usr/share/matrix-gui-2.0/apps/armnn_demo_staticimg/desc_armnn_demo_staticimg.html
diff --git a/tidl_apps/armnn_demo_staticimg/desc_armnn_demo_staticimg.html b/tidl_apps/armnn_demo_staticimg/desc_armnn_demo_staticimg.html
new file mode 100644
index 0000000..ad4c466
--- /dev/null
+++ b/tidl_apps/armnn_demo_staticimg/desc_armnn_demo_staticimg.html
@@ -0,0 +1,5 @@
+<h1>Arm NN Demo with Classification of Common Objects</h1>
+<h2>Purpose:</h2>
+<p>This application demonstrates Deep Learning Imagenet classification (1000 classes) with MobileNet network topology based on Arm NN SDK.</p>
+<p>Single Arm core is used with pre-recorded clip of common objects.</p>
+<p>Exit demo by doing right-click on image window.</p>
diff --git a/tidl_apps/armnn_demo_staticimg/runArmnnStaticImg.sh b/tidl_apps/armnn_demo_staticimg/runArmnnStaticImg.sh
new file mode 100644
index 0000000..8b996ff
--- /dev/null
+++ b/tidl_apps/armnn_demo_staticimg/runArmnnStaticImg.sh
@@ -0,0 +1,3 @@
+cd /usr/bin
+
+./ArmnnExamples -f tensorflow-binary -i input -s '1 224 224 3' -o MobilenetV1/Predictions/Reshape_1 -d /usr/share/arm/armnn/testvecs/test2.mp4 -m /usr/share/arm/armnn/models/mobilenet_v1_1.0_224_frozen.pb -c CpuAcc --number_frame 999900
--
1.9.1
Loading...