Skip to content

Commit

Permalink
Removed level1 headings
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Feb 27, 2023
1 parent 710e300 commit bafca78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
11 changes: 4 additions & 7 deletions docs/ai-examples/classification-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: Classification Demo
page_id: classification-demo
---

# Image classification on the AI-deck

In this example, a binary classification CNN (object or background) is trained and executed on the AI-deck. The models included in the example are trained on data from a very particular domain (a table in the Bitcraze arena, with a particular Christmas package) with limited data augmentation, resulting in poor generalization and low robustness. For good results on your own domain, the example can be trained on a custom dataset captured by the AI-deck camera, and fitted to detect multiple custom classes of your choosing. The training can currently only be done on a native installation. Execution on / flashing the AI-deck can be done with a native installation or with the GAP8 docker.

![classification](/docs/images/classification.gif)
Expand Down Expand Up @@ -69,7 +67,7 @@ After successfully completing all previous steps, you can now run the classifica

```
$ docker run --rm -v ${PWD}:/module aideck-with-autotiler tools/build/make-example examples/ai/classification clean model build image
```
```

Then from another terminal (outside of the container), use the cfloader to flash the example if you have the gap8 bootloader flashed AIdeck. Change the [CRAZYFLIE URI] with your crazyflie URI like radio://0/40/2M/E7E7E7E703
```
Expand All @@ -91,13 +89,12 @@ From a terminal with the docker container, or gap_sdk dev environment, in the `a

```
docker run --rm -v ${PWD}:/module aideck-with-autotiler tools/build/make-example examples/ai/classification clean model build image
```
```

Then you need to write the weights and run the CNN:

```
docker run --rm -v ${PWD}:/module --privileged aideck-with-autotiler tools/build/make-example examples/ai/classification all run
```

You should now see the same output as in the gif in the beginning.
```

You should now see the same output as in the gif in the beginning.
9 changes: 3 additions & 6 deletions docs/test-functions/test-camera.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
---
title: Test Himax Camera
title: Testing the Himax Camera
page_id: test-camera
---

# Testing the Himax camera on the AIdeck


This concerns the example in folder *AIdeck_examples/GAP8/test_functionalities/test_camera/*. This was tested on **GAP_SDK version 3.8.1**.

In the makefile enable `APP_CFLAGS += -DASYNC_CAPTURE` if you want to test the asynchronous camera capture and remove it if you want to test the normal one. To save a color image enable `APP_CFLAGS += -DCOLOR_IMAGE`. And, to capture a `324x324` image enable `APP_CFLAGS += -DQVGA_MODE`. *Please note though that capturing an image in non-QVGA mode might not always work correctly.*

To test out the code, first, source the AIdeck config (configs/ai_deck.sh) in your terminal and write
To test out the code, first, source the AIdeck config (configs/ai_deck.sh) in your terminal and write

make clean all run io=host

Expand All @@ -20,4 +17,4 @@ for directly running the code from L2 (second level internal memory) with your p
To build and execute in the docker we need to place the `demosaicking`-files in the `common`-folder inside the docker.
```
docker run --rm -it -v $PWD:/module/data/ --device /dev/ttyUSB0 --privileged -P gapsdk:3.7 /bin/bash -c 'export GAPY_OPENOCD_CABLE=interface/ftdi/olimex-arm-usb-tiny-h.cfg; source /gap_sdk/configs/ai_deck.sh; cd /module/data/; make clean all run'
```
```
4 changes: 1 addition & 3 deletions docs/test-functions/uart-send-char.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ title: Send character over UART
page_id: uart-send-char
---

# Send character over UART

This concerns the example in the folder *AIdeck_examples/GAP8/test_functionalities/uart_send_char/*. This was tested on **GAP_SDK version 3.8.1**.


The uart send character example sends a character over UART1, meant to be read out by the Crazyflie at the other end. Make sure that the AI-deck driver is force compiled in the crazyflie firmware as explained [here](https://www.bitcraze.io/documentation/repository/crazyflie-firmware/master/development/howto/#enabling-the-driver
).
).

0 comments on commit bafca78

Please sign in to comment.