Skip to contentSkip to conversation

tidl_demo*: remove timeout to exit a demo

PATCH New Hongmei Gou 2 participants 2 messages Sep 28, 2018 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tidl_demo*: remove timeout to exit a demo

* tidl_classification has already mechanism to exit a demo (by right-clicking the main window)

* Avoid the side problem of not returning to the demo HTML page in time after right-clicking the main window before the timeout

---
 tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh                     | 4 +---
 tidl_apps/tidl_demo_livecam_lg2/runTidlLiveCam_lg2.sh             | 4 +---
 tidl_apps/tidl_demo_pnexamples/runTidlPnExamples.sh               | 5 +----
 tidl_apps/tidl_demo_staticimg/runTidlStaticImg.sh                 | 3 +--
 tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh | 3 +--
 tidl_apps/tidl_demo_staticimg_lg2/runTidlStaticImg_lg2.sh         | 4 +---
 6 files changed, 6 insertions(+), 17 deletions(-)
tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh +1 -3
index 6b80d0e..e225519 100644
@@ -1,5 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 1 -d 2 -e 0 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt & pid=$!
-
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 1 -d 2 -e 0 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_livecam_lg2/runTidlLiveCam_lg2.sh +1 -3
index 9219f60..9dfd098 100644
@@ -1,5 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 2 -d 1 -e 2 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt & pid=$!
-
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 2 -d 1 -e 2 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_pnexamples/runTidlPnExamples.sh +1 -4
index 37e5ec3..7171f53 100644
@@ -1,6 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 2 -d 1 -e 1 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test2.mp4 -c ./stream_config_j11_v2.txt & pid=$!
-
-{ sleep 3600; kill $pid; }
-
+./tidl_classification -g 2 -d 1 -e 1 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test2.mp4 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_staticimg/runTidlStaticImg.sh +1 -2
index 8d9d5d4..7d017d4 100644
@@ -1,4 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 1 -d 2 -e 2 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt & pid=$!
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 1 -d 2 -e 2 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh +1 -2
index b32fe56..64e3c68 100644
@@ -1,4 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 1 -d 2 -e 0 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt & pid=$!
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 1 -d 2 -e 0 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_staticimg_lg2/runTidlStaticImg_lg2.sh +1 -3
index 83fdab9..4824722 100755
@@ -1,5 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 2 -d 1 -e 2 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt & pid=$!
-
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 2 -d 1 -e 2 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt
Signature · 1 line
1.9.1

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 tidl_demo*: remove timeout to exit a demo

ACK

-----Original Message-----
From: Gou, Hongmei
Sent: Friday, September 28, 2018 12:19 PM
To: [email protected]
Cc: Gou, Hongmei
Subject: [meta-arago] [matrix-gui-v2-apps] [PATCH] tidl_demo*: remove timeout to exit a demo

* tidl_classification has already mechanism to exit a demo (by right-clicking the main window)

* Avoid the side problem of not returning to the demo HTML page in time after right-clicking the main window before the timeout

---
 tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh                     | 4 +---
 tidl_apps/tidl_demo_livecam_lg2/runTidlLiveCam_lg2.sh             | 4 +---
 tidl_apps/tidl_demo_pnexamples/runTidlPnExamples.sh               | 5 +----
 tidl_apps/tidl_demo_staticimg/runTidlStaticImg.sh                 | 3 +--
 tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh | 3 +--
 tidl_apps/tidl_demo_staticimg_lg2/runTidlStaticImg_lg2.sh         | 4 +---
 6 files changed, 6 insertions(+), 17 deletions(-)
tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh +1 -3
index 6b80d0e..e225519 100644
@@ -1,5 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 1 -d 2 -e 0 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt & pid=$!
-
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 1 -d 2 -e 0 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_livecam_lg2/runTidlLiveCam_lg2.sh +1 -3
index 9219f60..9dfd098 100644
@@ -1,5 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 2 -d 1 -e 2 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt & pid=$!
-
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 2 -d 1 -e 2 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_pnexamples/runTidlPnExamples.sh +1 -4
index 37e5ec3..7171f53 100644
@@ -1,6 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 2 -d 1 -e 1 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test2.mp4 -c ./stream_config_j11_v2.txt & pid=$!
-
-{ sleep 3600; kill $pid; }
-
+./tidl_classification -g 2 -d 1 -e 1 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test2.mp4 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_staticimg/runTidlStaticImg.sh +1 -2
index 8d9d5d4..7d017d4 100644
@@ -1,4 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 1 -d 2 -e 2 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt & pid=$!
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 1 -d 2 -e 2 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh +1 -2
index b32fe56..64e3c68 100644
@@ -1,4 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 1 -d 2 -e 0 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt & pid=$!
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 1 -d 2 -e 0 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt
tidl_apps/tidl_demo_staticimg_lg2/runTidlStaticImg_lg2.sh +1 -3
index 83fdab9..4824722 100755
@@ -1,5 +1,3 @@
 cd /usr/share/ti/tidl/examples/classification
 
-./tidl_classification -g 2 -d 1 -e 2 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt & pid=$!
-
-{ sleep 3600; kill $pid; }
+./tidl_classification -g 2 -d 1 -e 2 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt
Signature · 1 line
1.9.1