You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/electron-winml/README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Electron WinML Sample
2
2
3
-
This sample demonstrates how to integrate Windows Machine Learning (WinML) into an Electron application using the Windows App Development CLI. The app uses the SqueezeNet 1.1 model to classify images directly on the user's device.
3
+
This sample demonstrates how to integrate Windows Machine Learning (WinML) into an Electron application using the Windows App Development CLI. The app uses the SqueezeNet 1.1 model to classify images directly on the user's device, and the Phi model for text generation.
4
4
5
5
## What's Included
6
6
@@ -37,12 +37,21 @@ This automatically runs the `postinstall` script which:
37
37
- Adds debug identity to Electron
38
38
39
39
### 2. Download the Model
40
+
The models are available in the [AI Dev Gallery](https://aka.ms/aidevgallery). Install the gallery to download the models. You don't need both models if you only care about one or the other. The *models* folder will need to be created.
41
+
42
+
43
+
#### SqueezeNet
44
+
1. Navigate to the **Classify Image** sample
45
+
2. Download the **SqueezeNet 1.1** model
46
+
3. Click **Open Containing Folder** to locate the `.onnx` file
47
+
4. Copy `squeezenet1.1-7.onnx` to the `models/` folder in this project
48
+
49
+
#### Phi
50
+
1. Navigate to the **Generate Text** sample
51
+
2. Download any of the Phi models from Custom models
52
+
3. Click **Open Containing Folder** to locate model files
53
+
4. Copy all the contents of the folder (should have .onnx and .json files) to the `models/phi` folder in this project.
40
54
41
-
1. Install the [AI Dev Gallery](https://aka.ms/aidevgallery)
42
-
2. Navigate to the **Classify Image** sample
43
-
3. Download the **SqueezeNet 1.1** model
44
-
4. Click **Open Containing Folder** to locate the `.onnx` file
45
-
5. Copy `squeezenet1.1-7.onnx` to the `models/` folder in this project
0 commit comments