You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`mtk_converter-8.8.0.dev20240723+public.d1467db9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl`: This library preprocess the model into a MediaTek representation.
32
+
-`mtk_neuron-8.2.2-py3-none-linux_x86_64.whl`: This library converts the model to binaries.
34
33
35
34
## Setup
36
35
37
-
Follow the steps below to set up your build environment:
36
+
Follow the steps below to setup your build environment:
37
+
38
+
1.**Setup ExercuTorch Environment**: Refer to the [Setting up ExercuTorch](https://pytorch.org/executorch/stable/getting-started-setup) guide for detailed instructions on setting up the ExercuTorch environment.
39
+
40
+
2.**Setup MediaTek Backend Environment**
41
+
- Install the dependent libs. Ensure that you are inside backends/mediatek/ directory
42
+
```bash
43
+
pip3 install -r requirements.txt
44
+
```
45
+
- Install the two .whl downloaded from NeuroPilot Portal
1.**ExercuTorch Official Tutorial**: Refer to the [Setting up ExercuTorch](https://pytorch.org/executorch/stable/getting-started-setup) guide for detailed instructions on setting up the ExercuTorch environment.
55
+
## Build
40
56
41
-
2.**Build Script**: Once the prerequisites are in place, run the `mtk_build.sh` script to start the build process.
57
+
1.**Build MediaTek Backend**: Once the prerequisites are in place, run the `mtk_build.sh` script to start the build process, MediaTek backend will be built under `cmake-android-out/backends/` as `libneuron_backend.so`
42
58
43
59
```bash
44
60
./mtk_build.sh
45
61
```
46
-
3.**Push MediaTek universal SDK to the device**: push libneuronusdk_adapter.mtk.so to the phone and export it to the `$LD_LIBRARY_PATH` environment variable before executing ExercuTorch with MediaTek backend.
62
+
63
+
## Run
64
+
65
+
1.**Push MediaTek universal SDK and MediaTek backend to the device**: push `libneuronusdk_adapter.mtk.so` and `libneuron_backend.so` to the phone and export it to the `$LD_LIBRARY_PATH` environment variable before executing ExercuTorch with MediaTek backend.
0 commit comments