summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Gekov <george.gekov@arm.com>2021-07-06 12:02:26 +0100
committerGeorge Gekov <george.gekov@arm.com>2021-07-09 13:43:06 +0100
commitbe54c625bbec3b0c5927c772053951c06e336ae2 (patch)
treee5ebf88f3940152a0c787a27f01c8b30e2c6d595
parent80eecfbdaad689c52d5a6d370a322f3d6a6150e4 (diff)
downloadml-embedded-evaluation-kit-be54c625bbec3b0c5927c772053951c06e336ae2.tar.gz
MLECO-2036: Fix Vela3 documentation references & update Vela .ini configuration
Signed-off-by: George Gekov <george.gekov@arm.com> Change-Id: I92b9ab60974ad266246994deae5833f7f374633d
-rw-r--r--docs/quick_start.md2
-rw-r--r--docs/sections/building.md4
-rw-r--r--scripts/vela/default_vela.ini1
-rw-r--r--source/use_case/asr/usecase.cmake2
-rw-r--r--source/use_case/kws_asr/usecase.cmake2
5 files changed, 6 insertions, 5 deletions
diff --git a/docs/quick_start.md b/docs/quick_start.md
index 9a2937c..9d059fe 100644
--- a/docs/quick_start.md
+++ b/docs/quick_start.md
@@ -63,7 +63,7 @@ mkdir resources_downloaded && cd resources_downloaded
python3 -m venv env
env/bin/python3 -m pip install --upgrade pip
env/bin/python3 -m pip install --upgrade setuptools
-env/bin/python3 -m pip install ethos-u-vela==2.1.1
+env/bin/python3 -m pip install ethos-u-vela==3.0.0
cd ..
curl -L https://github.com/ARM-software/ML-zoo/raw/7c32b097f7d94aae2cd0b98a8ed5a3ba81e66b18/models/anomaly_detection/micronet_medium/tflite_int8/ad_medium_int8.tflite \
diff --git a/docs/sections/building.md b/docs/sections/building.md
index 96af70d..63f8d53 100644
--- a/docs/sections/building.md
+++ b/docs/sections/building.md
@@ -672,11 +672,11 @@ vela \
<model>.tflite
```
-The Vela folder contains the following:
+The Vela command contains the following:
- `--accelerator-config`: Specifies the accelerator configuration to use between `ethos-u55-256`, `ethos-u55-128`,
`ethos-u55-64`, and `ethos-u55-32`.
-- `--block-config-limit`: Limits the block config search space. Use `zero` for unlimited search space.
+- `--optimise`: Sets the optimisation strategy to Performance or Size. The Size strategy results in a model minimising the SRAM usage whereas the Performance strategy optimises the neural network for maximal perforamance. Note that if using the Performance strategy, you can also pass the `--arena-cache-size` option to Vela.
- `--config`: Specifies the path to the Vela configuration file. The format of the file is a Python ConfigParser `.ini`
file. An example can be found in the `dependencies` folder [default_vela.ini](../../scripts/vela/default_vela.ini).
- `--memory-mode`: Selects the memory mode to use as specified in the Vela configuration file.
diff --git a/scripts/vela/default_vela.ini b/scripts/vela/default_vela.ini
index c49b597..327b760 100644
--- a/scripts/vela/default_vela.ini
+++ b/scripts/vela/default_vela.ini
@@ -44,3 +44,4 @@ OffChipFlash_write_latency=64
const_mem_area=Axi1
arena_mem_area=Axi0
cache_mem_area=Axi0
+arena_cache_size=4194304 \ No newline at end of file
diff --git a/source/use_case/asr/usecase.cmake b/source/use_case/asr/usecase.cmake
index 89014de..3417c06 100644
--- a/source/use_case/asr/usecase.cmake
+++ b/source/use_case/asr/usecase.cmake
@@ -71,7 +71,7 @@ generate_labels_code(
USER_OPTION(${use_case}_ACTIVATION_BUF_SZ "Activation buffer size for the chosen model"
- 0x00200000
+ 0x00400000
STRING)
if (ETHOS_U55_ENABLED)
diff --git a/source/use_case/kws_asr/usecase.cmake b/source/use_case/kws_asr/usecase.cmake
index c47d633..8d2d6d1 100644
--- a/source/use_case/kws_asr/usecase.cmake
+++ b/source/use_case/kws_asr/usecase.cmake
@@ -55,7 +55,7 @@ USER_OPTION(${use_case}_LABELS_TXT_FILE_ASR "Labels' txt file for the chosen mod
USER_OPTION(${use_case}_ACTIVATION_BUF_SZ "Activation buffer size for the chosen model"
- 0x00200000
+ 0x00400000
STRING)
USER_OPTION(${use_case}_MODEL_SCORE_THRESHOLD_KWS "Specify the score threshold [0.0, 1.0) that must be applied to the KWS results for a label to be deemed valid."