Skip to content

Commit 0323b7a

Browse files
committed
odl: Introduce teacher-student python out-of-the-box app
Add GTK python based out-of-the-box application for teacher-student on object-detection use case. Signed-off-by: Othmane AHL ZOUAOUI <[email protected]>
1 parent 16418b3 commit 0323b7a

24 files changed

+4545
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Application:
2+
Name: Teacher-student learning
3+
Description: SSD MobileNetV2 + RT-DETR
4+
Icon: ../x-linux-ai/resources/ODL_teacher_student_py.png
5+
Board:
6+
List: all
7+
Type: script
8+
Script:
9+
Exist:
10+
File: /usr/local/x-linux-ai/resources/check_camera_preview.sh
11+
Msg_false: Camera is not connected
12+
Start: ../x-linux-ai/on-device-learning/launch_python_odl_teacher_student_obj_detect.sh
13+
Action:
14+
button_release_event: script_management
15+
button_press_event: highlight_eventBox
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
#
3+
# Copyright (c) 2025 STMicroelectronics.
4+
# All rights reserved.
5+
#
6+
# This software is licensed under terms that can be found in the LICENSE file
7+
# in the root directory of this software component.
8+
# If no LICENSE file comes with this software, it is provided AS-IS.
9+
10+
weston_user=$(ps aux | grep '/usr/bin/weston '|grep -v 'grep'|awk '{print $1}')
11+
source /usr/local/x-linux-ai/resources/config_board.sh
12+
cmd="python3 /usr/local/x-linux-ai/on-device-learning/odl_teacher_student_obj_detect.py -t /usr/local/x-linux-ai/on-device-learning/teacher_model/rt-detr/rtdetr-l.onnx -l /usr/local/x-linux-ai/on-device-learning/student_model/ssd_mobilenet_v2/labels.txt --training_artifacts_path /usr/local/x-linux-ai/on-device-learning/student_model/ssd_mobilenet_v2/training_artifacts/"
13+
14+
if [ "$weston_user" != "root" ]; then
15+
echo "user : "$weston_user
16+
script -qc "su -l $weston_user -c '$cmd'"
17+
else
18+
$cmd
19+
fi

0 commit comments

Comments
 (0)