Skip to content

Commit 16418b3

Browse files
committed
odl: Introduce teacher-student jupyterlab out-of-the-box app
Signed-off-by: Othmane AHL ZOUAOUI <[email protected]>
1 parent dcf8c5c commit 16418b3

11 files changed

+1759
-3
lines changed

recipes-devtools/python3-torch/python3-torch_2.3.1.bb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@ RDEPENDS:${PN} = " \
5151
${PYTHON_PN}-numpy \
5252
${PYTHON_PN}-protobuf \
5353
${PYTHON_PN}-pip \
54-
${PYTHON_PN}-matplotlib \
5554
libgomp \
5655
"
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_jupyter.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_jupyterlab_odl_teacher_student_obj_detect.sh
13+
Action:
14+
button_release_event: script_management
15+
button_press_event: highlight_eventBox
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
SLA0044 Rev5/February 2018
2+
Software license agreement
3+
ULTIMATE LIBERTY SOFTWARE LICENSE AGREEMENT
4+
BY INSTALLING, COPYING, DOWNLOADING, ACCESSING OR OTHERWISE USING THIS SOFTWARE
5+
OR ANY PART THEREOF (AND THE RELATED DOCUMENTATION) FROM STMICROELECTRONICS
6+
INTERNATIONAL N.V, SWISS BRANCH AND/OR ITS AFFILIATED COMPANIES
7+
(STMICROELECTRONICS), THE RECIPIENT, ON BEHALF OF HIMSELF OR HERSELF, OR ON
8+
BEHALF OF ANY ENTITY BY WHICH SUCH RECIPIENT IS EMPLOYED AND/OR ENGAGED AGREES
9+
TO BE BOUND BY THIS SOFTWARE LICENSE AGREEMENT.
10+
Under STMicroelectronics’ intellectual property rights, the redistribution,
11+
reproduction and use in source and binary forms of the software or any part
12+
thereof, with or without modification, are permitted provided that the following
13+
conditions are met:
14+
1. Redistribution of source code (modified or not) must retain any copyright
15+
notice, this list of conditions and the disclaimer set forth below as items 10
16+
and 11.
17+
2. Redistributions in binary form, except as embedded into microcontroller or
18+
microprocessor device manufactured by or for STMicroelectronics or a software
19+
update for such device, must reproduce any copyright notice provided with the
20+
binary code, this list of conditions, and the disclaimer set forth below as
21+
items 10 and 11, in documentation and/or other materials provided with the
22+
distribution.
23+
3. Neither the name of STMicroelectronics nor the names of other contributors to
24+
this software may be used to endorse or promote products derived from this
25+
software or part thereof without specific written permission.
26+
4. This software or any part thereof, including modifications and/or derivative
27+
works of this software, must be used and execute solely and exclusively on or in
28+
combination with a microcontroller or microprocessor device manufactured by or
29+
for STMicroelectronics.
30+
5. No use, reproduction or redistribution of this software partially or totally
31+
may be done in any manner that would subject this software to any Open Source
32+
Terms. “Open Source Terms” shall mean any open source license which requires as
33+
part of distribution of software that the source code of such software is
34+
distributed therewith or otherwise made available, or open source license that
35+
substantially complies with the Open Source definition specified at
36+
www.opensource.org and any other comparable open source license such as for
37+
example GNU General Public License (GPL), Eclipse Public License (EPL), Apache
38+
Software License, BSD license or MIT license.
39+
6. STMicroelectronics has no obligation to provide any maintenance, support or
40+
updates for the software.
41+
7. The software is and will remain the exclusive property of STMicroelectronics
42+
and its licensors. The recipient will not take any action that jeopardizes
43+
STMicroelectronics and its licensors' proprietary rights or acquire any rights
44+
in the software, except the limited rights specified hereunder.
45+
8. The recipient shall comply with all applicable laws and regulations affecting
46+
the use of the software or any part thereof including any applicable export
47+
control law or regulation.
48+
9. Redistribution and use of this software or any part thereof other than as
49+
permitted under this license is void and will automatically terminate your
50+
rights under this license.
51+
10. THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND
52+
ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
53+
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
54+
NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS, WHICH ARE
55+
DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT SHALL
56+
STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
57+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
58+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
59+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
60+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
61+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
62+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63+
11. EXCEPT AS EXPRESSLY PERMITTED HEREUNDER, NO LICENSE OR OTHER RIGHTS, WHETHER
64+
EXPRESS OR IMPLIED, ARE GRANTED UNDER ANY PATENT OR OTHER INTELLECTUAL PROPERTY
65+
RIGHTS OF STMICROELECTRONICS OR ANY THIRD PARTY.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
cmd="python3 /usr/local/x-linux-ai/on-device-learning/odl_teacher_student_obj_detect_demo_hub.py"
12+
13+
if [ "$weston_user" != "root" ]; then
14+
echo "user : "$weston_user
15+
script -qc "su -l $weston_user -c '$cmd'"
16+
else
17+
$cmd
18+
fi

0 commit comments

Comments
 (0)