Skip to content

Commit 4eea40b

Browse files
MLECO-5454: VSI support driven by build-type
Moving away from last implementation using a separate cproject to configure VSI support. Instead it is now a build-type option for object-detection example targeting Arm Corstone reference package based FVPs. Change-Id: I624a00ec93063f25cfcba4b229408a9623e300eb Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
1 parent 171982f commit 4eea40b

File tree

5 files changed

+83
-91
lines changed

5 files changed

+83
-91
lines changed

cmsis-pack-examples/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,11 @@ $ cp ./out/kws/STM32F746-DISCO/Release/kws.Release+STM32F746-DISCO.bin /media/us
236236

237237
### Working with Virtual Streaming Interface
238238

239-
The object detection example supports the Virtual Streaming Interface (VSI) feature found in the FVPs for Arm Corstone-300, Corstone-310 and Corstone-315.
240-
This allows the locally installed FVP application (or an AVH instance) to read images in from a camera connected to
241-
your local machine and stream these over to the application running within the FVP.
239+
The object detection example supports the Virtual Streaming Interface (VSI) feature found in the
240+
FVPs for Arm Corstone-300, Corstone-310, Corstone-315 and Corstone-320. To build the example with
241+
VSI support, switch the build type to `VSI-enabled`. This allows the locally installed FVP
242+
application to read images in from a camera connected to your host machine and stream these over
243+
to the application running within the FVP.
242244

243245
To run the VSI application, append the command line with the v_path argument. For example:
244246

@@ -248,8 +250,8 @@ For Arm Corstone-300 and Arm Corstone-310:
248250

249251
```shell
250252
$ <path_to_installed_FVP> \
251-
-a ./out/object-detection-vsi/AVH-SSE-300-U55/Release/object-detection-vsi.axf \
252-
-C ethosu.num_macs=256 \
253+
-a ./out/object-detection/AVH-SSE-300-U55/VSI-enabled/object-detection.axf \
254+
-f ./device/corstone/fvp-configs/mps3_fvp_config.txt \
253255
-C mps3_board.v_path=./device/corstone/vsi/video/python/
254256
```
255257

@@ -259,8 +261,8 @@ For Arm Corstone-315 and Arm Corstone-320:
259261

260262
```shell
261263
$ <path_to_installed_FVP> \
262-
-a ./out/object-detection-vsi/AVH-SSE-315-U65/Release/object-detection-vsi.axf \
263-
-C ethosu.num_macs=256 \
264+
-a ./out/object-detection/AVH-SSE-320-U85/VSI-enabled/object-detection.axf \
265+
-f ./device/corstone/fvp-configs/mps4_fvp_config.txt \
264266
-C mps4_board.v_path=./device/corstone/vsi/video/python/
265267
```
266268

6.9 KB
Loading

cmsis-pack-examples/mlek.csolution.yml

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ solution:
5858
debug: off
5959
optimize: speed
6060

61+
- type: VSI-enabled
62+
compiler: AC6
63+
debug: off
64+
optimize: speed
65+
6166
target-types:
6267
# Arm Corstone-300 targets
6368
- type: AVH-SSE-300
@@ -156,35 +161,11 @@ solution:
156161
- +AVH-SSE-315-U65
157162
- +AVH-SSE-320
158163
- +AVH-SSE-320-U85
159-
- +Alif-E7-M55-HP
160-
161-
# Object detection with Virtual Streaming Interface (VSI) support
162-
- project: ./object-detection/object-detection-vsi.cproject.yml
163-
for-context:
164-
- +AVH-SSE-300
165-
- +AVH-SSE-300-U55
166-
- +AVH-SSE-300-U65
167-
- +AVH-SSE-310
168-
- +AVH-SSE-310-U55
169-
- +AVH-SSE-310-U65
170-
- +AVH-SSE-315
171-
- +AVH-SSE-315-U65
172-
- +AVH-SSE-320
173-
- +AVH-SSE-320-U85
164+
- .Debug+Alif-E7-M55-HP
165+
- .Release+Alif-E7-M55-HP
174166

175167
# Keyword Spotting (KWS) use case
176168
- project: ./kws/kws.cproject.yml
177-
for-context:
178-
- +AVH-SSE-300
179-
- +AVH-SSE-300-U55
180-
- +AVH-SSE-300-U65
181-
- +AVH-SSE-310
182-
- +AVH-SSE-310-U55
183-
- +AVH-SSE-310-U65
184-
- +AVH-SSE-315
185-
- +AVH-SSE-315-U65
186-
- +AVH-SSE-320
187-
- +AVH-SSE-320-U85
188-
- +FRDM-K64F
189-
- +STM32F746-DISCO
190-
- +Alif-E7-M55-HE
169+
not-for-context:
170+
- .VSI-enabled
171+
- +Alif-E7-M55-HP

cmsis-pack-examples/object-detection/object-detection-vsi.cproject.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

cmsis-pack-examples/object-detection/object-detection.cproject.yml

Lines changed: 64 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,9 @@ project:
2424

2525
groups:
2626
- group: MainStatic
27-
for-context:
28-
- +AVH-SSE-300
29-
- +AVH-SSE-300-U55
30-
- +AVH-SSE-300-U65
31-
- +AVH-SSE-310
32-
- +AVH-SSE-310-U55
33-
- +AVH-SSE-310-U65
34-
- +AVH-SSE-315
35-
- +AVH-SSE-315-U65
36-
- +AVH-SSE-320
37-
- +AVH-SSE-320-U85
27+
not-for-context:
28+
- .VSI-enabled
29+
- +Alif-E7-M55-HP
3830
files:
3931
- file: include/InputFiles.hpp
4032
- file: src/InputFiles.cpp
@@ -47,6 +39,61 @@ project:
4739
files:
4840
- file: src/main_live.cpp
4941

42+
- group: MainVSI
43+
for-context:
44+
- .VSI-enabled
45+
files:
46+
- file: src/main_vsi.cpp
47+
48+
- group: Use Case
49+
files:
50+
- file: src/yolo-fastest_192_face_v4.tflite.cpp
51+
for-context:
52+
- +AVH-SSE-300
53+
- +AVH-SSE-310
54+
- +AVH-SSE-315
55+
- +AVH-SSE-320
56+
- file: src/yolo-fastest_192_face_v4_vela_H256.tflite.cpp
57+
for-context:
58+
- +AVH-SSE-300-U55
59+
- +AVH-SSE-310-U55
60+
- +Alif-E7-M55-HP
61+
- file: src/yolo-fastest_192_face_v4_vela_Y256.tflite.cpp
62+
for-context:
63+
- +AVH-SSE-300-U65
64+
- +AVH-SSE-310-U65
65+
- +AVH-SSE-315-U65
66+
- file: src/yolo-fastest_192_face_v4_vela_Z256.tflite.cpp
67+
for-context:
68+
- +AVH-SSE-320-U85
69+
70+
- group: Device Files
71+
files:
72+
- file: linker/mps3-sse-300.sct
73+
for-context:
74+
- +AVH-SSE-300
75+
- +AVH-SSE-300-U55
76+
- +AVH-SSE-300-U65
77+
78+
- file: linker/mps3-sse-310.sct
79+
for-context:
80+
- +AVH-SSE-310
81+
- +AVH-SSE-310-U55
82+
- +AVH-SSE-310-U65
83+
84+
- file: linker/mps4-sse-315.sct
85+
for-context:
86+
- +AVH-SSE-315
87+
- +AVH-SSE-315-U65
88+
- +AVH-SSE-320
89+
- +AVH-SSE-320-U85
90+
91+
- file: linker/alif-e7-m55-hp.sct
92+
for-context: +Alif-E7-M55-HP
93+
94+
define:
95+
- ACTIVATION_BUF_SZ: 532480
96+
5097
layers:
5198
- layer: ../common/common.clayer.yml
5299

@@ -67,4 +114,9 @@ project:
67114
for-context:
68115
- +Alif-E7-M55-HP
69116

70-
- layer: ./object-detection.clayer.yml
117+
- layer: ../device/corstone/vsi/vsi.clayer.yml
118+
for-context:
119+
- .VSI-enabled
120+
121+
components:
122+
- component: ARM::ML Eval Kit:Vision:Object detection

0 commit comments

Comments
 (0)