Skip to content

Commit 44a9606

Browse files
authored
Merge pull request #5 from munober/master
documentation
2 parents 76ceffb + 966b1f0 commit 44a9606

File tree

2 files changed

+51
-9
lines changed

2 files changed

+51
-9
lines changed

README.md

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,52 @@
11
# STM32 TensorFlow Lite Micro Hello World + Micro Speech Demos
2-
Collection of STM32 projects making use of Tensorflow Lite Micro. Examples inspired by TinyML Book: https://www.oreilly.com/library/view/tinyml/9781492052036/
2+
Collection of STM32 projects making use of Tensorflow Lite Micro. Examples inspired by the [TinyML Book](https://www.oreilly.com/library/view/tinyml/9781492052036/).
33

4-
**Toolchain:**
5-
CMake-based. See Template: https://github.com/alxhoff/STM3240G-EVAL-TensorFlow-Hello-World
4+
## Toolchain:
5+
CMake-based. See our template: https://github.com/alxhoff/STM3240G-EVAL-TensorFlow-Hello-World
66

7-
**Supported Examples**
7+
## Supported Examples
88
- [Hello World](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/micro/examples/hello_world)
99
- [Micro Speech](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/micro/examples/micro_speech)
1010
- MNIST
1111

12-
**Supported Boards:**
13-
- STM32F413H-Discovery (`disco_f413zh`)
14-
- STM32F769I-Discovery (`disco_f769ni`)
12+
## Supported Boards
13+
- [STM32F413H-Discovery](https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus/stm32-high-performance-mcus/stm32f4-series/stm32f413-423/stm32f413zh.html#documentation) (`disco_f413zh`)
14+
- [STM32F769I-Discovery](https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus/stm32-high-performance-mcus/stm32f7-series/stm32f7x9/stm32f769ni.html#documentation) (`disco_f769ni`)
1515

16-
**Compatibility**
16+
Please consult the manufacturer's website for specs and datasheets.
1717

18+
## Running
19+
```
20+
git clone https://github.com/PhilippvK/stm32-tflm-demos
21+
```
22+
You need to also pull the sub-repos where the actual examples are stored.
23+
```
24+
git submodule update --init --recursive
25+
```
26+
Then switch into the folder where the example you want to deploy is stored. Do not worry about the *recursive* argument, we have only linked our repos, which are essential in this case.
27+
```
28+
cd examples/hello_world
29+
```
30+
OR
31+
```
32+
cd examples/micro_speech
33+
```
34+
OR
35+
```
36+
cd examples/mnist
37+
```
38+
Then:
39+
```
40+
mkdir build
41+
cd build
42+
cmake -DTF_COMMIT=37c2bf5016fcbed261476386eced503e907cdc01 ..
43+
make
44+
make flash
45+
```
46+
47+
Other make targets we provide include ```make debug``` and ```make convert```(to convert the *.tflite* file into a board-readable format).
48+
49+
## Compatibility
1850
Due to recent updates of the TF Source tree which have not been implemented for the TFLM Compiler, you have to use Commit `37c2bf5016fcbed261476386eced503e907cdc01` or earlier when cloning the TF repositiory via CMake:
1951

2052
```
@@ -24,7 +56,7 @@ cmake -DTF_COMMIT=37c2bf5016fcbed261476386eced503e907cdc01 ..
2456

2557
If there are new changes for patched files in the TF Source Tree, they will probably not be merged with the modified file or patches might get overwritten. If something like this occours, please remove the `build/_deps/tf-*` directories and the `CMakeCache.txt` and try again!
2658

27-
**Documentation**
59+
## Documentation
2860
[File Structure](docs/File-Structure.md)
2961
[Issues & TODO](docs/Known-Issues---TODO's.md)
3062
[Patches](docs/Patches.md)

media/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Media Folder
2+
The archive here provides some samples you can copy to your SD card to validate their inference on the board. The structure is as follows:
3+
```
4+
.
5+
├──/micro_speech
6+
├──── *.wav
7+
├──/mnist
8+
├──── *.bmp
9+
```
10+
Make sure to format the SD card as FAT beforehand.

0 commit comments

Comments
 (0)