Skip to content

Commit b6ea749

Browse files
Corallojohan-hultberg-work
authored andcommitted
Feature/artpec 9 support
1 parent 37d23e4 commit b6ea749

File tree

16 files changed

+151
-31
lines changed

16 files changed

+151
-31
lines changed

.github/workflows/object-detection-cv25.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build ${{ env.example }} application
2727
env:
2828
example: ${{ env.EXNAME }}
29-
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}-${{ matrix.chip }}:${{ matrix.arch }}
29+
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}_${{ matrix.chip }}:${{ matrix.arch }}
3030
run: |
3131
docker image rm -f $imagetag
3232
cd $EXNAME

.github/workflows/object-detection.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ jobs:
1515
include:
1616
- arch: armv7hf
1717
chip: cpu
18-
axis-os: 12.1.60
18+
axis-os: 12.2.36
1919
- arch: armv7hf
2020
chip: edgetpu
21-
axis-os: 12.1.60
21+
axis-os: 12.2.36
2222
- arch: aarch64
2323
chip: artpec8
24-
axis-os: 12.1.60
24+
axis-os: 12.2.36
25+
- arch: aarch64
26+
chip: artpec9
27+
axis-os: 12.2.36
2528
env:
2629
EXREPO: acap-native-examples
2730
EXNAME: object-detection
@@ -32,7 +35,7 @@ jobs:
3235
- name: Build ${{ env.example }} application
3336
env:
3437
example: ${{ env.EXNAME }}-${{ matrix.chip }}
35-
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}-${{ matrix.chip }}:${{ matrix.arch }}
38+
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}_${{ matrix.chip }}:${{ matrix.arch }}
3639
run: |
3740
docker image rm -f $imagetag
3841
cd $EXNAME

.github/workflows/tensorflow-to-larod-artpec8.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
matrix:
1515
include:
1616
- arch: aarch64
17-
chip: artpec8
18-
axis-os: 12.1.60
1917
env:
2018
EXREPO: acap-native-examples
2119
EXNAME: tensorflow-to-larod-artpec8
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This is a dummy file for linters, the real test is run in
2+
# tensorflow-to-larod-artpec8
3+
name: Build tensorflow-to-larod-artpec9 application
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- 'dummy-branch-that-does-not-exist'
9+
10+
jobs:
11+
dummy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- run: echo "This is a dummy workflow"

.github/workflows/tensorflow-to-larod-cv25.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
matrix:
1515
include:
1616
- arch: aarch64
17-
chip: cv25
18-
axis-os: 12.1.60
1917
env:
2018
EXREPO: acap-native-examples
2119
EXNAME: tensorflow-to-larod-cv25

.github/workflows/tensorflow-to-larod.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
matrix:
1515
include:
1616
- arch: armv7hf
17-
chip: edgetpu
18-
axis-os: 12.1.60
1917
env:
2018
EXREPO: acap-native-examples
2119
EXNAME: tensorflow-to-larod

.github/workflows/vdo-larod.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ jobs:
1515
include:
1616
- arch: armv7hf
1717
chip: cpu
18-
axis-os: 12.1.60
18+
axis-os: 12.2.36
1919
- arch: armv7hf
2020
chip: edgetpu
21-
axis-os: 12.1.60
21+
axis-os: 12.2.36
2222
- arch: aarch64
2323
chip: artpec8
24-
axis-os: 12.1.60
24+
axis-os: 12.2.36
25+
- arch: aarch64
26+
chip: artpec9
27+
axis-os: 12.2.36
2528
- arch: aarch64
2629
chip: cv25
27-
axis-os: 12.1.60
30+
axis-os: 12.2.36
2831
env:
2932
EXREPO: acap-native-examples
3033
EXNAME: vdo-larod

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Below is the list of examples available in the repository.
5757
- An example that shows model conversion, model quantization, image formats and custom models.
5858
- [tensorflow-to-larod-artpec8](./tensorflow-to-larod-artpec8/)
5959
- An example that shows model conversion, model quantization, image formats and custom models on AXIS ARTPEC-8 devices.
60+
- [tensorflow-to-larod-artpec9](./tensorflow-to-larod-artpec9/)
61+
- An example that shows model conversion, model quantization, image formats and custom models on AXIS ARTPEC-9 devices. Note that this example is pointing to [tensorflow-to-larod-artpec8](./tensorflow-to-larod-artpec8).
6062
- [tensorflow-to-larod-cv25](./tensorflow-to-larod-cv25/)
6163
- An example that shows model conversion, model quantization, image formats and custom models on AXIS CV25 devices.
6264
- [using-opencv](./using-opencv/)

object-detection-cv25/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,13 @@ Depending on selected chip, different output is received. The label file is used
273273
274274
In the system log the chip is sometimes only mentioned as a string, they are mapped as follows:
275275
276-
| Chips | Larod 1 (int) | Larod 3 (string) |
276+
| Chips | Larod 1 (int) | Larod 3 |
277277
|-------|--------------|------------------|
278278
| CPU with TensorFlow Lite | 2 | cpu-tflite |
279279
| Google TPU | 4 | google-edge-tpu-tflite |
280280
| Ambarella CVFlow (NN) | 6 | ambarella-cvflow |
281281
| ARTPEC-8 DLPU | 12 | axis-a8-dlpu-tflite |
282+
| ARTPEC-9 DLPU | - | a9-dlpu-tflite |
282283
283284
There are four outputs from MobileNet SSD v2 (COCO) model. The number of detections, cLasses, scores, and locations are shown as below. The four location numbers stand for \[top, left, bottom, right\]. By the way, currently the saved images will be overwritten continuously, so those saved images might not all from the detections of the last frame, if the number of detections is less than previous detection numbers.
284285

object-detection/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RUN . /opt/axis/acapsdk/environment-setup* && \
5353
# Download pretrained models
5454
WORKDIR /opt/app/model
5555
ARG CHIP=
56-
RUN if [ "$CHIP" = cpu ] || [ "$CHIP" = artpec8 ]; then \
56+
RUN if [ "$CHIP" = artpec8 ] || [ "$CHIP" = artpec9 ] || [ "$CHIP" = cpu ] ; then \
5757
curl -L -o converted_model.tflite \
5858
https://github.com/google-coral/test_data/raw/master/ssd_mobilenet_v2_coco_quant_postprocess.tflite ; \
5959
elif [ "$CHIP" = edgetpu ]; then \

0 commit comments

Comments
 (0)