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
The first step is to load the data using TextLoader
87
87
@@ -102,16 +102,27 @@ teddy1.jpg teddy bear
102
102
```
103
103
As you can observe, the file does not have a header row.
104
104
105
-
The second step is to define the estimator pipeline. Usually, when dealing with deep neural networks, you must adapt the images to the format expected by the network. This is the reason images are resized and then transformed (mainly, pixel values are normalized across all R,G,B channels).
105
+
The Inception model has several default parameters you need to pass in.
106
106
107
107
```csharp
108
+
publicstructImageNetSettings
109
+
{
110
+
publicconstintimageHeight=224;
111
+
publicconstintimageWidth=224;
112
+
publicconstfloatmean=117;
113
+
publicconstboolchannelsLast=true;
114
+
}
115
+
```
116
+
117
+
The second step is to define the estimator pipeline. Usually, when dealing with deep neural networks, you must adapt the images to the format expected by the network. This is the reason images are resized and then transformed (mainly, pixel values are normalized across all R,G,B channels).
You also need to check the neural network, and check the names of the input / output nodes. In order to inspect the model, you can use tools like [Netron](https://github.com/lutzroeder/netron), which is automatically installed with [Visual Studio Tools for AI](https://visualstudio.microsoft.com/downloads/ai-tools-vs/).
117
128
These names are used later in the definition of the estimation pipe: in the case of the inception network, the input tensor is named 'input' and the output is named 'softmax2'
0 commit comments