From be54c625bbec3b0c5927c772053951c06e336ae2 Mon Sep 17 00:00:00 2001 From: George Gekov Date: Tue, 6 Jul 2021 12:02:26 +0100 Subject: MLECO-2036: Fix Vela3 documentation references & update Vela .ini configuration Signed-off-by: George Gekov Change-Id: I92b9ab60974ad266246994deae5833f7f374633d --- docs/quick_start.md | 2 +- docs/sections/building.md | 4 ++-- scripts/vela/default_vela.ini | 1 + source/use_case/asr/usecase.cmake | 2 +- source/use_case/kws_asr/usecase.cmake | 2 +- 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 \ .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." -- cgit v1.2.1