summaryrefslogtreecommitdiff
path: root/scripts/py
AgeCommit message (Collapse)Author
2024-04-24Bumping Pillow to non-vulnerable versionAlex Tawse
* The previous version of Pillow was flagged as vulnerable, so this change bumps the version Change-Id: I176c12c4df266de8f871b58efdcc277b090a31fa Signed-off-by: Alex Tawse <alex.tawse@arm.com>
2024-01-09Bumping version of resampyAlex Tawse
* The previously-used version of resampy contained a bug which caused any Python script that imported resampy to slow down significantly. Change-Id: I668cdf26fa2582c131698aa5e80f95b684fc692a Signed-off-by: Alex Tawse <alex.tawse@arm.com>
2023-11-30MLECO-4371 Update dependencies to 23.11 release components23.11-rc1Richard Burton
* Updated NPU components and dependencies (core-driver, core-platform, Vela, CMSIS, TensorFlow Lite Micro) to 23.11 release SHAs. * Changed Python version to 3.10 * Updated release notes and other documentation * Added workarounds to scripts in order to address build issues Signed-off-by: Aron Virginas-Tar <aron.virginas-tar@arm.com> Change-Id: I0a639b80881b53eebb216085b7e6764e3be8ca67
2023-11-08Fix: Incorrect CMSIS-NN urlLiam Barry
Change-Id: Id6e7e735e8891b59533036a7d216033a3d26e1c6 Signed-off-by: Liam Barry <liam.barry@arm.com> Change-Id: Ib471b1808252d64a08382e06e28936dcd5c636ab
2023-11-06MLECO-4457: Update python dependenciesConor Kennedy
Change-Id: Id3acb2d225c4890f716052e874f01651ee1a5481 Signed-off-by: Conor Kennedy <conor.kennedy@arm.com>
2023-10-26MLECO-3995: Pylint + Shellcheck compatibilityAlex Tawse
* All Python scripts updated to abide by Pylint rules * good-names updated to permit short variable names: i, j, k, f, g, ex * ignore-long-lines regex updated to allow long lines for licence headers * Shell scripts now compliant with Shellcheck Signed-off-by: Alex Tawse <Alex.Tawse@arm.com> Change-Id: I8d5af8279bc08bb8acfe8f6ee7df34965552bbe5
2023-10-16MLECO-3963 Remove conditional statements for different numpy versionGauri Sahnan
* For numpy versions 1.23 onwards remove comditional python statements Change-Id: Ie0aa54da9fc0f7fd426cd324b1b785d4794fc1c7 Signed-off-by: Gauri Sahnan <gauri.sahnan@arm.com>
2023-03-22MLECO-3962: Set specific versions for Python3.7 in requirements.txtConor Kennedy
* For compatibility reasons, use the following versions when running on Python3.7: numpy 1.21.3 scipy 1.7.3 Change-Id: I5213820cc64b51cfa8b4ff49a1bff030e652822d Signed-off-by: Conor Kennedy <conor.kennedy@arm.com>
2023-03-21MLECO-3802: [Maintenance] Remove Pillow warning23.02Isabella Gottardi
- Image.Resampling.BILINEAR replace deprecated Image.BILINEAR - Trivial documentation fixes Change-Id: Ia75af2d2bf171085d4a0a2c472f0e3f94dbdc5b9 Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2023-03-15MLECO-3666: Updating to 23.02 dependencies.23.02-rc1Kshitij Sisodia
Updating dependency submodules to 23.02 versions. See https://review.mlplatform.org/plugins/gitiles/ml/ethos-u/ethos-u/+/refs/tags/23.02/23.02.json Change-Id: If0e396decadc1b4e3c6b263c65f75ccf0dafed28 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-19MLECO-3611: Formatting fixes for generated files.Kshitij Sisodia
Template files updated for generated files to adhere to coding guidelines and clang format configuration. There will still be unavoidable violations, but most of the others have been fixed. Change-Id: Ia03db40f8c62a369f2b07fe02eea65e41993a523 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-09MLECO-3716: Update package versions in requirements.txt for Python 3.10Conor Kennedy
Change-Id: Iad3299379f2672510a569b22324823a0377c7179 Signed-off-by: Conor Kennedy <conor.kennedy@arm.com>
2022-12-06MLECO-3710: Fix for freshly updated submodule build issue.Kshitij Sisodia
TensorFlow Lite Micro can have stale third party components downloaded by an older version. On a submodule update, our recommendation to users would be to use `-DTENSORFLOW_LITE_MICRO_CLEAN_DOWNLOADS=ON` to clean the older downloads. Moving the triggered cleaning and refresh to CMake configuration stage (with no parallel build option). This should have a better chance of success with the subsequent build step. Change-Id: I305439c09658f49765ecc15eb1ce0c8b914dd30a
2022-11-17MLECO-3583: Update copyright notice according to new guidelinesRichard Burton
Change-Id: I0f057b33993e5196a60e52f4fb0c60e09693dcfe
2022-10-05MLECO-3065 Adding Git hook setup scriptEanna O Cathain
Change-Id: Ia900b17f13f1329b2788360e8dde639807f08099 Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com>
2022-09-28MLECO-3518: Move to CMake 3.23.3Maksims Svecovs
For the purpose of using decoupled presets move required CMake version to 3.23.3 that supports "includes" option for presets. Updates the documentation. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I259e8e3a4641294d8ccdee429c7284d8160b9e24
2022-09-13Fix: downgrade numpy version to 1.21.322.08Richard Burton
Recent ethos-u-vela version 3.5.0 does not support numpy version higher than 1.21.3. Downgrading numpy version to 1.21.3 for set_up_default_resources.py script to install proper packages. Change-Id: I15d8b1dbe04e974ebb140f99ba0f17bf6ee4f933 Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com>
2022-05-31MLECO-3213: Downgrade requirment from Python3.8 to Python3.7Richard Burton
Update Vela to 3.4.0 Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: If203d29d6884219cd4947a5753a1fb8d8284f174
2022-05-23MLECO-3225: Using official support for Arm Cortex-M85 CPU.Kshitij Sisodia
* CMake version requirement bumped up to 3.21.0 * CMake 3.22.4 installed in the local Python virtualenv * CPU flags updated in toolchain files. * Using __ARM_FEATURE_DSP instead of potentially defining ARM_MATH_DSP wrongly. * CMake project version bumped up to 22.05.0 Changes also made for MLECO-3107 (pack generation): * TensorFlow Lite Micro CMSIS-pack version updated to 1.22.02. * Change to using __ARM_FEATURE_DSP will also help the generated pack. Partial changes for MLECO-3095: * CMSIS updated to version post 5.9.0 * TensorFlow Lite Micro updated to latest available * Ethos-U driver and core-platform repositories updated to 20.05_rc2 tags. Change-Id: I012c9e65897aed8ce589cff9bfe3a19efc3edeb9 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-05-06MLECO-3183: Refactoring application sourcesKshitij Sisodia
Platform agnostic application sources are moved into application api module with their own independent CMake projects. Changes for MLECO-3080 also included - they create CMake projects individial API's (again, platform agnostic) that dependent on the common logic. The API for KWS_API "joint" API has been removed and now the use case relies on individual KWS, and ASR API libraries. Change-Id: I1f7748dc767abb3904634a04e0991b74ac7b756d Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-03-17MLECO-3036: Update to use Pathlib in Python scriptsRichard Burton
* Pathlib used in Python scripts over os * Bug fix for build_default.py * Minor code style updates Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I5fc2e582a84443c3fb79250eb711b960d63ed8fd
2022-03-15MLECO-3002: Update source gen requirements.txtRichard Burton
Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I0f6bf4f891ced4b0da1802546ccf345383af1d93
2022-03-04MLECO-2978: Update to 22.02 dependenciesRichard Burton
* Core-platform now a depdenency for timing adapter Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I54f3773bdf91083fa1513be15372fcf2231bea2c
2022-03-02MLECO-2881: Using MD5 sum for downloaded resources check.Kshitij Sisodia
Removing git as a requirement for the checks performed for downloaded resources. Another minor change is renaming of RTE_components.h to RTE_Components.h as per the convention. Change-Id: If93f80f2f5dfa6a3f143259904c33b3b6d3a6e7c Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-03-01MLECO-2881: Minor improvements for downloaded resourcesKshitij Sisodia
Check could have been bypassed if the script path provided as an argument was incorrect. Also, a minor update in the CMake function to fix the path. Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com> Change-Id: Id3cd4027843783e3ed8700eac503e7ba3f09ad04
2022-02-25MLECO-2881: Revise resources_downloaded based on optimised models' metadataIsabella Gottardi
Change-Id: I12777c3818463c11d6351db0b4961a2bc0b00b18 Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2022-02-02MLECO-2855: Move profiling outside application/mainIsabella Gottardi
Change-Id: I182bfa55b5ae743d6f0b9f5c766b746202a7968d Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2022-01-04MLECO-2834: Tests for Softmax function.Kshitij Sisodia
Added tests for recently added Softmax function in PlatformMath module. Change-Id: Iacf1f4eaf33a92e1d42275000765e7152d17176b
2021-11-10MLECO-2354 MLECO-2355 MLECO-2356: Moving noise reduction to public repositoryRichard Burton
* Use RNNoise model from PMZ * Add Noise reduction use-case Signed-off-by: Richard burton <richard.burton@arm.com> Change-Id: Ia8cc7ef102e22a5ff8bfbd3833594a4905a66057
2021-10-25MLECO-2458 and MLECO-2476 [Fix] VWW IFM quant stepIsabella Gottardi
* Changed image->cc conversion to be similar with preprocessing of img_class and vww models: images are scaled maintaing the aspect ration and then the centre crop of the correct size is taken. * VWW applies input quantization info to the int8 image (prior converted to [0,1] float range). * Changed adult_blur to a image without person. * Fix menu print when selecting a specific ifm to run (Select message was displayed after typing something) Change-Id: Ie6cde7ab4835ea842667b87397458a5d32131df3
2021-10-15MLECO-2423: [Fix] Case insensitive name clashIsabella Gottardi
* Fixed vww usage warnings (imageData in RunInferene and _GetImageIdx function) Change-Id: I2c37e4e4cc8c8eca841690f2df8d525ed516ecc8
2021-07-08MLECO-1987: Minor refactoring.alexander
ASRSlidingWindow can be used in other use-cases, thus it was renamed to decouple from ASR. Signed-off-by: alexander <alexander.efremov@arm.com> Change-Id: I2df977e4f18f490a532e0f27e3625b153ca464d7
2021-07-01MLECO-718: Minor imporovements to source genKshitij Sisodia
Changes: * minor speed up for tflite to C++ file generation * virtual env's pip upgrade before installation of packages Change-Id: If8cef85779b7381f444f608b565da0b8f994d364
2021-05-19MLECO-1933, MLECO-1914, MLECO-1885: Update to 21.05-rc2 componentsKshitij Sisodia
Core driver and sofware dependencies updated to latest release candidate revisions. Note: TensorFlow Lite Micro has not been updated. Also, gcc warnings for simple_platform target and ad use case have been fixed. Change-Id: I455b421f34375a719a941e6e220fe292a57613f5
2021-05-07MLECO-1860: Support for Arm GNU Embedded ToolchainKshitij Sisodia
This patch enables compilation of ML use cases bare-metal applications using Arm GNU Embedded Toolchain. The GNU toolchain can be used instead of the Arm Compiler that was already supported. The GNU toolchain is also set as the default toolchain when building applications for the MPS3 target. Note: The version of GNU toolchain must be 10.2.1 or higher. Change-Id: I5fff242f0f52d2db6c75d292f9fa990df1aec978 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2021-05-06MLECO-1898: removing support of legacy sse-200 platformalexander
Signed-off-by: alexander <alexander.efremov@arm.com> Change-Id: Ie462e786af1d429bcb815f2c10656ed82862715a
2021-03-29Opensource ML embedded evaluation kit21.03alexander
Change-Id: I12e807f19f5cacad7cef82572b6dd48252fd61fd