Skip to content

Commit 0421eac

Browse files
authored
Edits based on new suggestions
1) Changed MV2 intro to "uses the MobileNet v2 model to classify images." since current runner doesn't have camera integration 2) reworded conda env setup 3) added escape character for backslashes 4) mentioned MV2 model output values represent class scores
1 parent 975c998 commit 0421eac

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/source/using-executorch-windows.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
This document outlines the current known working build instructions for building and validating ExecuTorch on a Windows machine.
44

55
This demo uses the
6-
[MobileNet v2](https://pytorch.org/vision/main/models/mobilenetv2.html) model to
7-
process live camera images leveraging the
8-
[XNNPACK](https://github.com/google/XNNPACK) backend.
6+
[MobileNet v2](https://pytorch.org/vision/main/models/mobilenetv2.html) model to classify images using the [XNNPACK](https://github.com/google/XNNPACK) backend.
97

108
Note that all commands should be executed on Windows powershell in administrator mode.
119

@@ -25,7 +23,8 @@ Install ClangCL for Windows from the [official website](https://learn.microsoft.
2523
To check if conda is detected by the powershell prompt, try `conda list` or `conda --version`
2624

2725
If conda is not detected, you could run the powershell script for conda named `conda-hook.ps1`.
28-
26+
To verify that Conda is available in the in the powershell environment, run try `conda list` or `conda --version`.
27+
If Conda is not available, run conda-hook.ps1 as follows:
2928
```bash
3029
$miniconda_dir\\shell\\condabin\\conda-hook.ps1
3130
```
@@ -116,8 +115,8 @@ python .\\export_mv2.py
116115
del -Recurse -Force cmake-out; `
117116
cmake . `
118117
-DCMAKE_INSTALL_PREFIX=cmake-out `
119-
-DPYTHON_EXECUTABLE=C:\Users\nikhi\miniconda3\envs\et\python.exe `
120-
-DCMAKE_PREFIX_PATH=C:\Users\nikhi\miniconda3\envs\et\Lib\site-packages `
118+
-DPYTHON_EXECUTABLE=$miniconda_dir\\envs\\et\\python.exe `
119+
-DCMAKE_PREFIX_PATH=$miniconda_dir\\envs\\et\\Lib\\site-packages `
121120
-DCMAKE_BUILD_TYPE=Release `
122121
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON `
123122
-DEXECUTORCH_BUILD_FLATC=ON `
@@ -131,14 +130,16 @@ cmake . `
131130
-Bcmake-out; `
132131
cmake --build cmake-out -j64 --target install --config Release
133132
```
133+
where `$miniconda_dir` is the directory where you installed miniconda
134+
This is `“C:\Users\<username>\AppData\Local”` by default.
134135

135136
## Run Mobilenet V2 model with XNNPACK delegation
136137

137138
```bash
138-
.\cmake-out\backends\xnnpack\Release\xnn_executor_runner.exe --model_path=.\mv2_xnnpack.pte
139+
.\\cmake-out\\backends\\xnnpack\\Release\\xnn_executor_runner.exe --model_path=.\\mv2_xnnpack.pte
139140
```
140141

141-
The expected output would print a tensor of size 1x1000.
142+
The expected output would print a tensor of size 1x1000, containing values of class scores.
142143

143144
```bash
144145
Output 0: tensor(sizes=[1, 1000], [

0 commit comments

Comments
 (0)