Skip to content

Commit 58c9f70

Browse files
authored
Update README.md (#20)
1 parent f3b430d commit 58c9f70

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mv3/apple/ExecuTorchDemo/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
5255
pip 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.
7073
Export the MobileNet v3 model using the command line with Core ML, MPS and XNNPACK backends
7174

7275
```bash
73-
cd ~/executorch-examples
7476
python3 mv3/python/export.py
7577
```
7678

7779
Move the exported model to a specific location where the Demo App will pick them up:
7880

7981
```
80-
cd ~/executorch-examples
8182
mkdir -p mv3/apple/ExecuTorchDemo/ExecuTorchDemo/Resources/Models/MobileNet/
8283
mv *.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
106106
open mv3/apple/ExecuTorchDemo/ExecuTorchDemo.xcodeproj
@@ -114,7 +114,7 @@ command line:
114114
```bash
115115
xcrun simctl create executorch "iPhone 15"
116116
xcodebuild 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
120120
xcrun simctl delete executorch

0 commit comments

Comments
 (0)