Skip to content

Commit 1b52dec

Browse files
committed
Update TinyML Intro LP (WIP)
1 parent 0c0da4a commit 1b52dec

File tree

3 files changed

+12
-62
lines changed

3 files changed

+12
-62
lines changed

content/learning-paths/microcontrollers/introduction-to-tinyml-on-arm/build-model-8.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ weight: 7 # 1 is first, 2 is second, etc.
88
layout: "learningpathall"
99
---
1010

11-
TODO Where is this executed? Context? Make sure the steps works out-of-the-box
12-
13-
With our Environment ready, you can create a simple program to test the setup.
11+
TODO connect this part with the FVP/board?
12+
With our environment ready, you can create a simple program to test the setup.
1413

1514
This example defines a small feedforward neural network for a classification task. The model consists of 2 linear layers with ReLU activation in between.
1615

content/learning-paths/microcontrollers/introduction-to-tinyml-on-arm/env-setup-5.md

Lines changed: 9 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,7 @@ weight: 3
88
layout: "learningpathall"
99
---
1010

11-
In this section, you will prepare a development environment to compile the model.
12-
13-
## Before you begin
14-
15-
TODO remove this section?
16-
17-
18-
The instructions are for Ubuntu 22.04 or newer.
19-
20-
{{% notice Note %}}
21-
Note that the Corstone-300 FVP is not available for the Arm architecture so your host machine needs to x86_64.
22-
{{% /notice %}}
23-
24-
25-
The instructions have been tested on:
26-
- Arm-based cloud instances running Ubuntu 22.04.
27-
- Desktop computer with Ubuntu 24.04.
28-
- Windows Subsystem for Linux (WSL).
11+
In this section, you will prepare a development environment to compile the model. These instructions have been tested on Ubuntu 22.04, 24.04 and on Windows Subsystem for Linux (WSL).
2912

3013
## Install dependencies
3114

@@ -41,8 +24,8 @@ sudo apt install python-is-python3 python3-dev python3-venv gcc g++ make -y
4124
Create a Python virtual environment using `python venv`.
4225

4326
```console
44-
python3 -m venv $HOME/executorch
45-
source $HOME/executorch/bin/activate
27+
python3 -m venv $HOME/executorch-venv
28+
source $HOME/executorch-venv/bin/activate
4629
```
4730
The prompt of your terminal now has (executorch) as a prefix to indicate the virtual environment is active.
4831

@@ -62,49 +45,17 @@ Run a few commands to set up the ExecuTorch internal dependencies.
6245
git submodule sync
6346
git submodule update --init
6447

65-
pip install buck
6648
./install_requirements.sh
6749
```
6850

69-
## Install Edge Impulse CLI
70-
71-
1. Create an [Edge Impulse Account](https://studio.edgeimpulse.com/signup) and sign in.
72-
73-
TODO is the account needed?
74-
75-
2. Install the Edge Impulse CLI tools in your terminal
76-
77-
The Edge Impulse CLI tools require Node.js.
78-
79-
```console
80-
sudo apt install nodejs npm -y
81-
```
82-
83-
Confirm `node` is available by running:
84-
85-
```console
86-
node -v
87-
```
88-
89-
Your version is printed, for example:
90-
91-
```output
92-
v18.19.1
93-
```
94-
95-
Install the Edge Impulse CLI using NPM:
96-
97-
```console
98-
sudo npm install -g edge-impulse-cli
99-
```
100-
101-
3. Install Screen to use with edge devices
102-
103-
TODO is screen needed for this LP?
51+
{{% notice Note %}}
52+
If you run into an issue of `buck` running in a stale environment, reset it by running the following instructions.
10453

105-
```console
106-
sudo apt install screen -y
54+
```bash
55+
ps aux | grep buck
56+
pkill -f buck
10757
```
58+
{{% /notice %}}
10859

10960
## Next Steps
11061

content/learning-paths/microcontrollers/introduction-to-tinyml-on-arm/env-setup-6-FVP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ Test that the setup was successful by running the `run.sh` script.
2626
./run.sh
2727
```
2828

29-
TODO verify that this works with the simple_nn.py
29+
TODO connect this part to simple_nn.py part?
3030

3131
You will see a number of examples run on the FVP. This means you can proceed to the next section to test your environment setup.

0 commit comments

Comments
 (0)