Skip to content

Commit 7901fb1

Browse files
mguSTMvinceab
authored andcommitted
tflite-cv-apps : fix app launching on demo-launcher
Signed-off-by: Maxence GUILHIN <maxence.guilhin@st.com>
1 parent f410025 commit 7901fb1

16 files changed

+16
-16
lines changed

recipes-samples/tflite-cv-apps/files/image-classification/python/launch_python_label_tfl_edgetpu_mobilenet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmd="python3 /usr/local/demo-ai/computer-vision/tflite-image-classification-edge
55

66
if [ "$weston_user" != "root" ]; then
77
echo "user : "$weston_user
8-
su -l $weston_user -c "$cmd"
8+
script -qc "su -l $weston_user -c '$cmd'"
99
else
1010
$cmd
1111
fi

recipes-samples/tflite-cv-apps/files/image-classification/python/launch_python_label_tfl_edgetpu_mobilenet_testdata.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmd="python3 /usr/local/demo-ai/computer-vision/tflite-image-classification-edge
55

66
if [ "$weston_user" != "root" ]; then
77
echo "user : "$weston_user
8-
su -l $weston_user -c "$cmd"
8+
script -qc "su -l $weston_user -c '$cmd'"
99
else
1010
$cmd
1111
fi

recipes-samples/tflite-cv-apps/files/image-classification/python/launch_python_label_tfl_mobilenet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
44
cmd="python3 /usr/local/demo-ai/computer-vision/tflite-image-classification/python/label_tfl.py -m /usr/local/demo-ai/computer-vision/models/mobilenet/mobilenet_v1_0.5_128_quant.tflite -l /usr/local/demo-ai/computer-vision/models/mobilenet/labels.txt -v 0"
55
if [ "$weston_user" != "root" ]; then
66
echo "user : "$weston_user
7-
su -l $weston_user -c "$cmd"
7+
script -qc "su -l $weston_user -c '$cmd'"
88
else
99
$cmd
1010
fi

recipes-samples/tflite-cv-apps/files/image-classification/python/launch_python_label_tfl_mobilenet_testdata.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
44
cmd="python3 /usr/local/demo-ai/computer-vision/tflite-image-classification/python/label_tfl.py -m /usr/local/demo-ai/computer-vision/models/mobilenet/mobilenet_v1_0.5_128_quant.tflite -l /usr/local/demo-ai/computer-vision/models/mobilenet/labels.txt -i /usr/local/demo-ai/computer-vision/models/mobilenet/testdata/"
55
if [ "$weston_user" != "root" ]; then
66
echo "user : "$weston_user
7-
su -l $weston_user -c "$cmd"
7+
script -qc "su -l $weston_user -c '$cmd'""
88
else
99
$cmd
1010
fi

recipes-samples/tflite-cv-apps/files/image-classification/src/launch_bin_label_tfl_edgetpu_mobilenet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
44
cmd="/usr/local/demo-ai/computer-vision/tflite-image-classification-edgetpu/bin/label_tfl_gst_gtk -m /usr/local/demo-ai/computer-vision/models/mobilenet/mobilenet_v1_1.0_224_quant_edgetpu.tflite -l /usr/local/demo-ai/computer-vision/models/mobilenet/labels.txt --edgetpu"
55
if [ "$weston_user" != "root" ]; then
66
echo "user : "$weston_user
7-
su -l $weston_user -c "$cmd"
7+
script -qc "su -l $weston_user -c '$cmd'"
88
else
99
$cmd
1010
fi

recipes-samples/tflite-cv-apps/files/image-classification/src/launch_bin_label_tfl_edgetpu_mobilenet_testdata.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
44
cmd="/usr/local/demo-ai/computer-vision/tflite-image-classification-edgetpu/bin/label_tfl_gst_gtk -m /usr/local/demo-ai/computer-vision/models/mobilenet/mobilenet_v1_1.0_224_quant_edgetpu.tflite -l /usr/local/demo-ai/computer-vision/models/mobilenet/labels.txt -i /usr/local/demo-ai/computer-vision/models/mobilenet/testdata/ --edgetpu"
55
if [ "$weston_user" != "root" ]; then
66
echo "user : "$weston_user
7-
su -l $weston_user -c "$cmd"
7+
script -qc "su -l $weston_user -c '$cmd'"
88
else
99
$cmd
1010
fi

recipes-samples/tflite-cv-apps/files/image-classification/src/launch_bin_label_tfl_mobilenet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
44
cmd="/usr/local/demo-ai/computer-vision/tflite-image-classification/bin/label_tfl_gst_gtk -m /usr/local/demo-ai/computer-vision/models/mobilenet/mobilenet_v1_0.5_128_quant.tflite -l /usr/local/demo-ai/computer-vision/models/mobilenet/labels.txt -v 0"
55
if [ "$weston_user" != "root" ]; then
66
echo "user : "$weston_user
7-
su -l $weston_user -c "$cmd"
7+
script -qc "su -l $weston_user -c '$cmd'"
88
else
99
$cmd
1010
fi

recipes-samples/tflite-cv-apps/files/image-classification/src/launch_bin_label_tfl_mobilenet_testdata.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
44
cmd="/usr/local/demo-ai/computer-vision/tflite-image-classification/bin/label_tfl_gst_gtk -m /usr/local/demo-ai/computer-vision/models/mobilenet/mobilenet_v1_0.5_128_quant.tflite -l /usr/local/demo-ai/computer-vision/models/mobilenet/labels.txt -i /usr/local/demo-ai/computer-vision/models/mobilenet/testdata/"
55
if [ "$weston_user" != "root" ]; then
66
echo "user : "$weston_user
7-
su -l $weston_user -c "$cmd"
7+
script -qc "su -l $weston_user -c '$cmd'"
88
else
99
$cmd
1010
fi

recipes-samples/tflite-cv-apps/files/object-detection/python/launch_python_objdetect_tfl_coco_ssd_mobilenet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
44
cmd="python3 /usr/local/demo-ai/computer-vision/tflite-object-detection/python/objdetect_tfl.py -m /usr/local/demo-ai/computer-vision/models/coco_ssd_mobilenet/detect.tflite -l /usr/local/demo-ai/computer-vision/models/coco_ssd_mobilenet/labels.txt -v 0"
55
if [ "$weston_user" != "root" ]; then
66
echo "user : "$weston_user
7-
su -l $weston_user -c "$cmd"
7+
script -qc "su -l $weston_user -c '$cmd'"
88
else
99
$cmd
1010
fi

recipes-samples/tflite-cv-apps/files/object-detection/python/launch_python_objdetect_tfl_coco_ssd_mobilenet_testdata.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
44
cmd="python3 /usr/local/demo-ai/computer-vision/tflite-object-detection/python/objdetect_tfl.py -m /usr/local/demo-ai/computer-vision/models/coco_ssd_mobilenet/detect.tflite -l /usr/local/demo-ai/computer-vision/models/coco_ssd_mobilenet/labels.txt -i /usr/local/demo-ai/computer-vision/models/coco_ssd_mobilenet/testdata/"
55
if [ "$weston_user" != "root" ]; then
66
echo "user : "$weston_user
7-
su -l $weston_user -c "$cmd"
7+
script -qc "su -l $weston_user -c '$cmd'"
88
else
99
$cmd
1010
fi

0 commit comments

Comments
 (0)