Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gen ai lab chapters #547

Merged
merged 5 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ book:
- contents/labs/raspi/image_classification/image_classification.qmd
- contents/labs/raspi/object_detection/object_detection.qmd
- contents/labs/raspi/llm/llm.qmd
- contents/labs/raspi/vlm/vlm.qmd
- part: contents/labs/shared/shared.qmd
chapters:
- contents/labs/shared/kws_feature_eng/kws_feature_eng.qmd
Expand Down
32 changes: 17 additions & 15 deletions contents/labs/overview.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,23 @@ We have included laboratory materials for three key devices that represent diffe
* XIAO ESP32S3: A versatile, compact board suitable for keyword spotting and motion detection tasks.
* Raspberry Pi: A flexible platform for more computationally intensive tasks, including small language models and various classification and detection applications.

+----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Exercise | [Nicla Vision](https://store.arduino.cc/products/nicla-vision) | [XIAO ESP32S3](https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/) | [Raspberry Pi](https://www.raspberrypi.com/) |
+:===========================+:===============================================================+:===========================================================================+:=============================================+
| Installation & Setup | ✓ | ✓ | ✓ |
+----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Keyword Spotting (KWS) | ✓ | ✓ | |
+----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Image Classification | ✓ | ✓ | ✓ |
+----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Object Detection | ✓ | ✓ | ✓ |
+----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Motion Detection | ✓ | ✓ | |
+----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Small Language Models (SLM)| | | ✓ |
+----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
+-----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Exercise | [Nicla Vision](https://store.arduino.cc/products/nicla-vision) | [XIAO ESP32S3](https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/) | [Raspberry Pi](https://www.raspberrypi.com/) |
+:============================+:==============================================================:+:==========================================================================:+:============================================:+
| Installation & Setup | ✓ | ✓ | ✓ |
+-----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Keyword Spotting (KWS) | ✓ | ✓ | |
+-----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Image Classification | ✓ | ✓ | ✓ |
+-----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Object Detection | ✓ | ✓ | ✓ |
+-----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Motion Detection | ✓ | ✓ | |
+-----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Small Language Models (SLM) | | | ✓ |
+-----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+
| Vision Language Models (VLM)| | | ✓ |
+-----------------------------+----------------------------------------------------------------+----------------------------------------------------------------------------+----------------------------------------------+

## Lab Structure

Expand Down
20 changes: 12 additions & 8 deletions contents/labs/raspi/raspi.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ These labs offer invaluable hands-on experience with machine learning systems, l

## Pre-requisites

- **Raspberry Pi**: Ensure you have at least one of the boards: the Raspberry Pi Zero 2W, Raspberry Pi 4 or 5 for the Vision Labs, and the Raspberry 5 for the GenAi lab.
- **Raspberry Pi**: Ensure you have at least one of the boards: the Raspberry Pi Zero 2W, Raspberry Pi 4 or 5 for the Vision Labs, and the Raspberry 5 for the GenAi labs.
- **Power Adapter**: To Power on the boards.
- Raspberry Pi Zero 2-W: 2.5W with a Micro-USB adapter
- Raspberry Pi 4 or 5: 3.5W with a USB-C adapter
Expand All @@ -20,10 +20,14 @@ These labs offer invaluable hands-on experience with machine learning systems, l

## Exercises

| **Modality** | **Task** | **Description** | **Link** |
| ------------ | --------------------- | -------------------------- | ------------------------------------------------------- |
| Vision | Image Classification | Learn to classify images | [Link](./image_classification/image_classification.qmd) |
| Vision | Object Detection | Implement object detection | [Link](./object_detection/object_detection.qmd) |
| GenAI | Small Language Models | Deploy SLMs at the Edge | [Link](./llm/llm.qmd) |
| | | | |

+--------------+------------------------+----------------------------+---------------------------------------------------------+
| **Modality** | **Task** | **Description** | **Link** |
+:=============+:=======================+:===========================+:========================================================+
| Vision | Image Classification | Learn to classify images | [Link](./image_classification/image_classification.qmd) |
+--------------+------------------------+----------------------------+---------------------------------------------------------+
| Vision | Object Detection | Implement object detection | [Link](./object_detection/object_detection.qmd) |
+--------------+------------------------+----------------------------+---------------------------------------------------------+
| GenAI | Small Language Models | Deploy SLMs at the Edge | [Link](./llm/llm.qmd) |
+--------------+------------------------+----------------------------+---------------------------------------------------------+
| GenAI | Visual-Language Models | Deploy VLMs at the Edge | [Link](./vlm/vlm.qmd) |
+--------------+------------------------+----------------------------+---------------------------------------------------------+
Binary file added contents/labs/raspi/vlm/images/jpeg/cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/jpeg/htop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/cascade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/flyer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/fusca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/htop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/img_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/jupyter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/od_table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contents/labs/raspi/vlm/images/png/ssh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading