Djordje Senicic
2018-12-05 20:11:13 UTC
Signed-off-by: Djordje Senicic <***@ti.com>
---
tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh | 9 ++++++++-
.../runTidlStaticImg_dsponly.sh | 9 ++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh b/tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh
index e225519..6f5b464 100644
--- a/tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh
+++ b/tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh
@@ -1,3 +1,10 @@
+numdsp=2
+if cat /proc/device-tree/model | grep "AM571"
+then
+ numdsp=1
+fi
+echo "NUMDSPs is $numdsp"
+
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
+./tidl_classification -g 1 -d $numdsp -e 0 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt
diff --git a/tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh b/tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh
index 64e3c68..4819ace 100644
--- a/tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh
+++ b/tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh
@@ -1,3 +1,10 @@
+numdsp=2
+if cat /proc/device-tree/model | grep "AM571"
+then
+ numdsp=1
+fi
+echo "NUMDSPs is $numdsp"
+
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
+./tidl_classification -g 1 -d $numdsp -e 0 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt
---
tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh | 9 ++++++++-
.../runTidlStaticImg_dsponly.sh | 9 ++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh b/tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh
index e225519..6f5b464 100644
--- a/tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh
+++ b/tidl_apps/tidl_demo_livecam/runTidlLiveCam.sh
@@ -1,3 +1,10 @@
+numdsp=2
+if cat /proc/device-tree/model | grep "AM571"
+then
+ numdsp=1
+fi
+echo "NUMDSPs is $numdsp"
+
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
+./tidl_classification -g 1 -d $numdsp -e 0 -l ./imagenet.txt -s ./classlist.txt -i 1 -c ./stream_config_j11_v2.txt
diff --git a/tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh b/tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh
index 64e3c68..4819ace 100644
--- a/tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh
+++ b/tidl_apps/tidl_demo_staticimg_dsponly/runTidlStaticImg_dsponly.sh
@@ -1,3 +1,10 @@
+numdsp=2
+if cat /proc/device-tree/model | grep "AM571"
+then
+ numdsp=1
+fi
+echo "NUMDSPs is $numdsp"
+
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
+./tidl_classification -g 1 -d $numdsp -e 0 -l ./imagenet.txt -s ./classlist.txt -i ./clips/test10.mp4 -c ./stream_config_j11_v2.txt
--
2.17.1
2.17.1