File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,22 @@ install_neuropilot() {
1414 echo " Start installing neuropilot."
1515 mkdir -p " ${MEDIATEK_INSTALLATION_DIR} "
1616
17- curl -Lo /tmp/neuropilot-express-sdk-8.0.4-build20241016. tar.gz " https://s3.ap-southeast-1.amazonaws.com/mediatek.neuropilot.com/8c1ff4e4-4256-47ed-9e24-67818b4cc4b9 .gz"
17+ curl -Lo /tmp/neuropilot-express. tar.gz " https://s3.ap-southeast-1.amazonaws.com/mediatek.neuropilot.com/06302508-4c94-4bf2-9789-b0ee44e83e27 .gz"
1818 echo " Finishing downloading neuropilot sdk."
19- tar zxvf /tmp/neuropilot-express-sdk-8.0.4-build20241016 .tar.gz --strip-components=1 --directory " ${MEDIATEK_INSTALLATION_DIR} "
19+ tar zxvf /tmp/neuropilot-express.tar.gz --strip-components=1 --directory " ${MEDIATEK_INSTALLATION_DIR} "
2020 echo " Finishing unzip neuropilot sdk."
2121
22+ # Copy NP header
23+ cp ${MEDIATEK_INSTALLATION_DIR} /api/NeuronAdapter.h ${EXECUTORCH_ROOT} /backends/mediatek/runtime/include/api/
24+
2225 # Print the content for manual verification
2326 ls -lah " ${MEDIATEK_INSTALLATION_DIR} "
2427}
2528
2629setup_neuropilot () {
2730 pip3 install -r ${EXECUTORCH_ROOT} /backends/mediatek/requirements.txt
28- pip3 install ${MEDIATEK_INSTALLATION_DIR} /mtk_neuron-8.2.13 -py3-none-linux_x86_64.whl
29- pip3 install ${MEDIATEK_INSTALLATION_DIR} /mtk_converter-8.9.1_public_packages /mtk_converter-8.9.1 +public-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
31+ pip3 install ${MEDIATEK_INSTALLATION_DIR} /mtk_neuron-8.2.19 -py3-none-linux_x86_64.whl
32+ pip3 install ${MEDIATEK_INSTALLATION_DIR} /mtk_converter-8.13.0_public_packages /mtk_converter-8.13.0 +public-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
3033}
3134
3235setup_calibration_data () {
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ test_model_with_mediatek() {
257257 EXPORT_SCRIPT=inception_v3
258258 fi
259259
260- " ${PYTHON_EXECUTABLE} " -m examples.mediatek.model_export_scripts.${EXPORT_SCRIPT} -d /tmp/neuropilot/train -a ${EXPORT_SCRIPT}
260+ PYTHONPATH=examples/mediatek/ " ${PYTHON_EXECUTABLE} " -m examples.mediatek.model_export_scripts.${EXPORT_SCRIPT} -d /tmp/neuropilot/train -a ${EXPORT_SCRIPT}
261261 EXPORTED_MODEL=$( find " ./${EXPORT_SCRIPT} " -type f -name " *.pte" -print -quit)
262262}
263263
You can’t perform that action at this time.
0 commit comments