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
{{ message }}
Repository navigation
Commit c1c9a5e
Browse filesBrowse the repository at this point in the historyBrowse files
local image_url="https://gitlab.arm.com/artificial-intelligence/ethos-u/ml-embedded-evaluation-kit/-/raw/main/resources/img_class/samples/dog.bmp?ref_type=heads"
100
108
if [[ !-f"${image_path}" ]];then
101
109
echo"${FUNCNAME}: Downloading sample image from ${image_url}"
102
-
wget -O "${image_path}""${image_url}"
110
+
ifcommand -v wget >/dev/null 2>&1;then
111
+
wget -O "${image_path}""${image_url}"
112
+
elifcommand -v curl >/dev/null 2>&1;then
113
+
curl -L "${image_url}" -o "${image_path}"
114
+
else
115
+
echo"${FUNCNAME}: Missing wget or curl; unable to download sample image"
116
+
return 1
117
+
fi
103
118
else
104
119
echo"${FUNCNAME}: Reusing sample image at ${image_path}"
Copy file name to clipboardExpand all lines: examples/arm/image_classification_example_ethos_u/README.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,5 +13,3 @@ The example is divided into two sections:
13
13
14
14
-`model_export/README.md` — Covers fine-tuning a model for a new usecase, quantization to INT8, lowering to Ethos-U via ExecuTorch and `.pte` generation.
15
15
-`runtime/README.md` — Covers building the bare-metal app, generating headers from the `.pte` and image, and running on the FVP.
16
-
17
-
In addition, this example uses `../executor_runner/` for various utilities (linker scripts, memory allocators, and the PTE-to-header converter).
3. Set up the build system. You need to provide path to the DEiT-Tiny pte generated in the
15
-
`examples/arm/image_classification_example/model_export` folder. You also need to provide an image of a dog or cat, you can download such image from the [HuggingFace Oxford iiit pet dataset](https://huggingface.co/datasets/timm/oxford-iiit-pet).
15
+
`examples/arm/image_classification_example_ethos_u/model_export` folder. You also need to provide an image of a dog or cat, you can download such image from the [HuggingFace Oxford iiit pet dataset](https://huggingface.co/datasets/timm/oxford-iiit-pet).
16
16
17
17
```
18
-
$ cmake -DCMAKE_TOOLCHAIN_FILE=$(pwd)/ethos-u-setup/arm-none-eabi-gcc.cmake -DET_PTE_FILE_PATH=<path to DEiT-Tiny compiled for Ethos-U85-256> -DIMAGE_PATH=<path to a JPG image> -Bsimple_app_deit_tiny image_classification_example/runtime
18
+
$ cmake -DCMAKE_TOOLCHAIN_FILE=$(pwd)/ethos-u-setup/arm-none-eabi-gcc.cmake -DET_PTE_FILE_PATH=<path to DEiT-Tiny compiled for Ethos-U85-256> -DIMAGE_PATH=<path to a JPG image> -Bsimple_app_deit_tiny image_classification_example_ethos_u/runtime
0 commit comments