15
15
16
16
OUTPUT=" ${1:- executorch} "
17
17
EXIT_STATUS=0
18
- APP_PATH=" examples/demo-apps/apple_ios /ExecuTorchDemo/ExecuTorchDemo"
18
+ APP_PATH=" executorch- examples/apple /ExecuTorchDemo/ExecuTorchDemo"
19
19
MODEL_NAME=" mv3"
20
20
SIMULATOR_NAME=" executorch"
21
21
@@ -44,26 +44,17 @@ say() {
44
44
echo -e " \033[1m\n\t** $1 **\n\033[0m"
45
45
}
46
46
47
- say " Cloning the Code"
48
-
49
- pushd . > /dev/null
50
- git clone -b release/0.6 https://github.com/pytorch/executorch.git " $OUTPUT "
51
- cd " $OUTPUT "
52
-
53
- say " Updating the Submodules"
54
-
55
- git submodule update --init
56
-
57
47
say " Activating a Virtual Environment"
58
48
59
- python3 -m venv .venv
60
- source .venv/bin/activate
49
+ python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
61
50
62
51
say " Installing Requirements"
63
52
64
- pip install --upgrade cmake pip setuptools wheel zstd
53
+ ./install_executorch.sh
65
54
66
- ./install_executorch.sh --pybind coreml mps xnnpack
55
+ say " Cloning the Demo App"
56
+
57
+ git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git
67
58
68
59
say " Installing CoreML Backend Requirements"
69
60
@@ -88,11 +79,6 @@ say "Downloading Labels"
88
79
curl https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt \
89
80
-o " $APP_PATH /Resources/Models/MobileNet/imagenet_classes.txt"
90
81
91
- say " Building Frameworks"
92
-
93
- ./scripts/build_apple_frameworks.sh --coreml --custom --mps --optimized --portable --quantized --xnnpack
94
- mv cmake-out " $APP_PATH /Frameworks"
95
-
96
82
say " Creating Simulator"
97
83
98
84
xcrun simctl create " $SIMULATOR_NAME " " iPhone 15"
0 commit comments