Skip to content

Commit cb17083

Browse files
author
jakmro
committed
Add EfficientSAM README.md
1 parent e451878 commit cb17083

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# EfficientSAM Model Export
2+
3+
This example demonstrates how to export the [EfficientSAM](https://github.com/yformer/EfficientSAM) model to Core ML and XNNPACK using ExecuTorch.
4+
5+
# Instructions
6+
7+
## 1. Setup
8+
9+
Follow the [tutorial](https://pytorch.org/executorch/main/getting-started-setup#) to set up ExecuTorch.
10+
11+
## 2. Exports
12+
13+
### Exporting to Core ML
14+
15+
Make sure to install the [required dependencies](https://pytorch.org/executorch/main/build-run-coreml.html#setting-up-your-developer-environment) for Core ML export.
16+
17+
To export the model to Core ML, run the following command:
18+
19+
```bash
20+
cd executorch
21+
python -m examples.apple.coreml.scripts.export -m efficient_sam
22+
```
23+
24+
### Exporting to XNNPACK
25+
26+
To export the model to XNNPACK, run the following command:
27+
28+
```bash
29+
cd executorch
30+
python -m examples.xnnpack.aot_compiler -m efficient_sam
31+
```
32+
33+
# Licensing
34+
35+
The code in the `efficient_sam_core` directory is licensed under the [Apache License 2.0](./efficient_sam_core/LICENSE.txt).

0 commit comments

Comments
 (0)