Skip to content

Commit 986d001

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Update demo app readme. (#5962)
Summary: Pull Request resolved: #5962 . Reviewed By: kirklandsign Differential Revision: D64016159 fbshipit-source-id: 31c453ce453fa66228baae977ccbd02b24dddbcc
1 parent 12cb9ca commit 986d001

File tree

1 file changed

+10
-6
lines changed
  • examples/demo-apps/apple_ios/ExecuTorchDemo

1 file changed

+10
-6
lines changed

examples/demo-apps/apple_ios/ExecuTorchDemo/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ Follow the [Setting Up ExecuTorch](https://pytorch.org/executorch/stable/getting
4444
tutorial to configure the basic environment:
4545

4646
```bash
47-
git clone https://github.com/pytorch/executorch.git -b release/0.3 --recursive
47+
git clone https://github.com/pytorch/executorch.git --depth 1 --recurse-submodules --shallow-submodules
4848
cd executorch
4949

5050
python3 -m venv .venv && source .venv/bin/activate
5151

52+
pip install --upgrade cmake pip setuptools wheel
53+
5254
./install_requirements.sh --pybind coreml mps xnnpack
5355
```
5456

@@ -74,13 +76,15 @@ Export the MobileNet v3 model with Core ML, MPS and XNNPACK backends, and move
7476
the exported model to a specific location where the Demo App will pick them up:
7577

7678
```bash
77-
python3 -m examples.portable.scripts.export --model_name="mv3"
78-
python3 -m examples.apple.coreml.scripts.export --model_name="mv3"
79-
python3 -m examples.apple.mps.scripts.mps_example --model_name="mv3"
80-
python3 -m examples.xnnpack.aot_compiler --delegate --model_name="mv3"
79+
MODEL_NAME="mv3"
80+
81+
python3 -m examples.portable.scripts.export --model_name="$MODEL_NAME"
82+
python3 -m examples.apple.coreml.scripts.export --model_name="$MODEL_NAME"
83+
python3 -m examples.apple.mps.scripts.mps_example --model_name="$MODEL_NAME"
84+
python3 -m examples.xnnpack.aot_compiler --model_name="$MODEL_NAME" --delegate
8185

8286
mkdir -p examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Resources/Models/MobileNet/
83-
mv mv3*.pte examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Resources/Models/MobileNet/
87+
mv "$MODEL_NAME*.pte" examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Resources/Models/MobileNet/
8488
```
8589

8690
### 2. Download Labels

0 commit comments

Comments
 (0)