Discussion:
[meta-arago] [matrix-gui-v2-apps][PATCH] armnn: added ARM-NN Matrix GUI demo examples in tidl_apps.
Qin Su
2018-11-19 20:08:19 UTC
Permalink
added ARM-NN demo example 1 with MobileNet network topology and live camera input
added ARM-NN demo example 2 with MobileNet network topology and 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 100755 tidl_apps/armnn_demo_livecam/armnn_demo_livecam.desktop
create mode 100755 tidl_apps/armnn_demo_livecam/desc_armnn_demo_livecam.html
create mode 100755 tidl_apps/armnn_demo_livecam/runArmnnLiveCam.sh
create mode 100755 tidl_apps/armnn_demo_staticimg/armnn_demo_staticimg.desktop
create mode 100755 tidl_apps/armnn_demo_staticimg/desc_armnn_demo_staticimg.html
create mode 100755 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 100755
index 0000000..fb92d1f
--- /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 100755
index 0000000..d305fa6
--- /dev/null
+++ b/tidl_apps/armnn_demo_livecam/desc_armnn_demo_livecam.html
@@ -0,0 +1,5 @@
+<h1>ARM-NN MobileNet 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.</p>
+<p>Single A15 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 100755
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 100755
index 0000000..e58567c
--- /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 Static Image Input
+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 100755
index 0000000..3515168
--- /dev/null
+++ b/tidl_apps/armnn_demo_staticimg/desc_armnn_demo_staticimg.html
@@ -0,0 +1,5 @@
+<h1>ARM-NN MobileNet Demo with Video Clip Input</h1>
+<h2>Purpose:</h2>
+<p>This application demonstrates Deep Learning Imagenet classification (1000 classes) with MobileNet network topology based on ARM-NN.</p>
+<p>Single A15 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 100755
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...