Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:laboratoare:2025:lab6 [2025/11/01 21:16]
dan.tudose [Project setup and dataset capture]
iothings:laboratoare:2025:lab6 [2025/11/03 17:49] (current)
dan.tudose [Project setup and dataset capture]
Line 1: Line 1:
-====== Lab 6. Edge Machine ​Learning ======+====== Lab 6. Supervised ​Learning: TinyML ​======
  
 ===== What AI/ML + IoT actually is ===== ===== What AI/ML + IoT actually is =====
Line 148: Line 148:
 ===== Project setup and dataset capture ===== ===== Project setup and dataset capture =====
  
-Import this project into Platformio: {{:​iothings:​laboratoare:​2025:​aispeak.zip| AISpeak}}.+Import this project into Platformio: ​ 
 +{{:​iothings:​laboratoare:​2025:​aispeak.zip|AISpeak.zip}}
  
-It should have the structure below+ 
 +It should have the structure below:
 <​code>​ <​code>​
 include/ include/
Line 166: Line 168:
 Flash your board with audio_capture.cpp and then quit VSCode. ​ Flash your board with audio_capture.cpp and then quit VSCode. ​
  
-From your terminal, run ''​capture_host.py''​ and press ''​h''​ to record a wake word or ''​o''​ to record ambient sound or anything else. You must speak the wak word immediately after pressing ''​h'',​ as you have a one second window!+From your terminal, run ''​capture_host.py''​ and press ''​h''​ to record a wake word or ''​o''​ to record ambient sound or anything else. 
  
-Do at least 50 '​hello'​ word samples and at least 50-100 '​other'​ samples.+<note important>​You must speak the wake word immediately after pressing ''​h'',​ as you have only a one second window!</​note>​ 
 + 
 +<note tip>Do at least 50 '​hello'​ word samples and at least 50-100 '​other'​ samples.</​note>​
  
  
Line 177: Line 181:
 Just like in the previous example, it will generate a audio_model.h file which you will need to include into your project. Just like in the previous example, it will generate a audio_model.h file which you will need to include into your project.
  
 +<​code>​
 +python3 trainer_improved.py
 +X shape: (140, 980) expected input: 980
 +Test accuracy: 0.9642857142857143
 +checksums: mu -58395.66015625 sig^-1 111.23896789550781 W0 809.772705078125 b0 1.0469250679016113 W1 4.047879695892334 b1 0.33552950620651245
 +Wrote include/​audio_model.h
 +
 +</​code>​
 ===== Running the wake word example ===== ===== Running the wake word example =====
  
iothings/laboratoare/2025/lab6.1762024616.txt.gz · Last modified: 2025/11/01 21:16 by dan.tudose
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0