Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:applications:armnn-tflite

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:applications:armnn-tflite [2024/12/14 09:26]
sravan
products:sbc:common:applications:armnn-tflite [2024/12/16 05:22] (current)
sravan [Install necessary python packages]
Line 9: Line 9:
 <WRAP info> <WRAP info>
 This library depends on OpenCL, make sure you are using the following platforms to ensure the driver is present. This library depends on OpenCL, make sure you are using the following platforms to ensure the driver is present.
-^ board ^ Linux Kernel (BSP) ^ OS ^  +^ board  ^ Linux Kernel (BSP)  ^ OS                            
-| VIM3 | 4.9 \\ 5.15 | Ubuntu 22.04 \\ Ubuntu 24.04 | +| VIM3   | 4.9 \\ 5.15         | Ubuntu 22.04 \\ Ubuntu 24.04  
-| VIM3L | 4.9 \\ 5.15 | Ubuntu 22.04 \\ Ubuntu 24.04 | +| VIM3L  | 4.9 \\ 5.15         | Ubuntu 22.04 \\ Ubuntu 24.04  
-| VIM4| 5.4 \\ 5.15 | Ubuntu 22.04 \\ Ubuntu 24.04 | +| VIM4   | 5.4 \\ 5.15         | Ubuntu 22.04 \\ Ubuntu 24.04  
-| Edge2| 5.10| Ubuntu 22.04 \\ Ubuntu 24.04 |+| Edge2  | 5.10 \\ 6.1         | Ubuntu 22.04 \\ Ubuntu 24.04  |
  
 You can refer to the [[products:sbc:common:applications:opencl|]] doc for more info. You can refer to the [[products:sbc:common:applications:opencl|]] doc for more info.
 </WRAP> </WRAP>
- 
-===== Get source code ===== 
-Clone the examples [[gh>sravansenthiln1/armnn_tflite]] 
- 
-```shell 
-$ git clone https://github.com/sravansenthiln1/armnn_tflite 
-$ cd armnn_tflite 
-``` 
  
 ===== Setup the environment ===== ===== Setup the environment =====
Line 33: Line 25:
  
 <WRAP important>  <WRAP important> 
-Ubuntu 24.04 ships with the updated 3.12 version of python which has constraints on installing non-system python packages, +Ubuntu 24.04 ships with the updated 3.12 version of python which Tensorflow has not been updated to the newer python versionhence we must use an older supported version.
-as a result, python packages must be installed inside a python virtual environment to avoid conflicts.+
  
-Furthermore, Tensorflow has not been updated to the newer python versionhence we must use an older supported version.+Furthermore, it has constraints on installing non-system python packages, 
 +as a result, python packages must be installed inside a python virtual environment to avoid conflicts.
  
 You must activate this environment whenever you need to use the application. You must activate this environment whenever you need to use the application.
Line 63: Line 55:
 </WRAP> </WRAP>
  
-==== Install necessary python packages ====+===== Get source code ===== 
 +Clone the examples [[gh>sravansenthiln1/armnn_tflite]] 
 ```shell ```shell
-pip3 install pillow numpy==1.26.2+git clone https://github.com/sravansenthiln1/armnn_tflite 
 +$ cd armnn_tflite
 ``` ```
  
-==== Install the TFLite runtime interpreter ====+==== Install necessary python packages ====
 ```shell ```shell
-pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime+pip3 install numpy==1.26.tflite_runtime pillow opencv librosa sounddevice
 ``` ```
  
Line 90: Line 85:
 ==== Create library symlinks ==== ==== Create library symlinks ====
 ```shell ```shell
-$ sudo ln ../libs/delegate/libarmnnDelegate.so.29.libarmnnDelegate.so.29+$ sudo ln ../libs/delegate/libarmnnDelegate.so.29.libarmnnDelegate.so.29
 $ sudo ln ../libs/libarmnn.so.34.0 libarmnn.so.34 $ sudo ln ../libs/libarmnn.so.34.0 libarmnn.so.34
 ``` ```
Last modified: 2024/12/14 09:26 by sravan