@@ -49,6 +49,9 @@ The steps to add the necessary package dependency are available in the
4949### 4. Set Up ExecuTorch
5050
5151``` bash
52+ # Create a virtual environment if needed:
53+ # python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
54+
5255pip install executorch
5356```
5457
@@ -58,7 +61,7 @@ Alternatively, clone ExecuTorch and set up the environment as explained in the [
5861### 5. Clone the Demo App
5962
6063``` bash
61- git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git
64+ git clone https://github.com/pytorch-labs/executorch-examples.git && cd executorch-examples
6265```
6366
6467## Models and Labels
@@ -70,14 +73,12 @@ Now, let's move on to exporting and bundling the MobileNet v3 model.
7073Export the MobileNet v3 model using the command line with Core ML, MPS and XNNPACK backends
7174
7275``` bash
73- cd ~ /executorch-examples
7476python3 mv3/python/export.py
7577```
7678
7779Move the exported model to a specific location where the Demo App will pick them up:
7880
7981```
80- cd ~/executorch-examples
8182mkdir -p mv3/apple/ExecuTorchDemo/ExecuTorchDemo/Resources/Models/MobileNet/
8283mv *.pte mv3/apple/ExecuTorchDemo/ExecuTorchDemo/Resources/Models/MobileNet/
8384```
@@ -99,8 +100,7 @@ tests, and finally run the app.
99100
100101### 1. Open Project in Xcode
101102
102- Double-click on the project file under
103- ` executorch-examples/mv3/apple/ExecuTorchDemo/ExecuTorchDemo ` to openit with Xcode, or run the command:
103+ Double-click on the project file under ` mv3/apple/ExecuTorchDemo/ExecuTorchDemo ` to openit with Xcode, or run the command:
104104
105105``` bash
106106open mv3/apple/ExecuTorchDemo/ExecuTorchDemo.xcodeproj
@@ -114,7 +114,7 @@ command line:
114114``` bash
115115xcrun simctl create executorch " iPhone 15"
116116xcodebuild clean test \
117- -project executorch-examples/ mv3/apple/ExecuTorchDemo/ExecuTorchDemo.xcodeproj \
117+ -project mv3/apple/ExecuTorchDemo/ExecuTorchDemo.xcodeproj \
118118 -scheme App \
119119 -destination name=executorch
120120xcrun simctl delete executorch
0 commit comments