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: docs/samples/Microsoft.ML.Samples/Dynamic/ImageClassification/ResnetV2101TransferLearningTrainTestSplit.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -57,11 +57,11 @@ public static void Example()
57
57
IDataViewtrainDataset=trainTestData.TrainSet;
58
58
IDataViewtestDataset=trainTestData.TestSet;
59
59
60
-
varvalidationSet=mlContext.Transforms.LoadImages("Image",fullImagesetFolderPath,true,"ImagePath")// true indicates we want the image as a VBuffer<byte>
60
+
varvalidationSet=mlContext.Transforms.LoadImages("Image",fullImagesetFolderPath,false,"ImagePath")// false indicates we want the image as a VBuffer<byte>
61
61
.Fit(testDataset)
62
62
.Transform(testDataset);
63
63
64
-
varpipeline=mlContext.Transforms.LoadImages("Image",fullImagesetFolderPath,true,"ImagePath")// true indicates we want the image as a VBuffer<byte>
64
+
varpipeline=mlContext.Transforms.LoadImages("Image",fullImagesetFolderPath,false,"ImagePath")// false indicates we want the image as a VBuffer<byte>
65
65
.Append(mlContext.Model.ImageClassification(
66
66
"Image","Label",
67
67
// Just by changing/selecting InceptionV3 here instead of
/// <param name="inputColumnName">Name of the column with paths to the images to load.
108
108
/// This estimator operates over text data.</param>
109
109
/// <param name="imageFolder">Folder where to look for images.</param>
110
-
/// <param name="useImageType">Image type flag - If true loads image as a VectorDataView type else loads image as ImageDataViewType. Defaults to ImageDataViewType if not specified or false.</param>
110
+
/// <param name="useImageType">Image type flag - If true loads image as a ImageDataViewType type else loads image as VectorDataViewType. Defaults to ImageDataViewType if not specified or is true.</param>
111
111
/// <example>
112
112
/// <format type="text/markdown">
113
113
/// <![CDATA[
@@ -129,7 +129,7 @@ public static ImageLoadingEstimator LoadImages(this TransformsCatalog catalog, s
/// <param name="imageFolder">Folder where to look for images.</param>
132
-
/// <param name="useImageType ">Image type flag - If true loads image as a VectorDataView type else loads image as ImageDataViewType. Defaults to ImageDataViewType if not specified or false.</param>
132
+
/// <param name="useImageType ">Image type flag - If true loads image as a ImageDataViewType type else loads image as VectorDataViewType. Defaults to ImageDataViewType if not specified or is true.</param>
133
133
/// <param name="columns">Specifies the names of the input columns for the transformation, and their respective output column names.</param>
/// <param name="imageFolder">Folder where to look for images.</param>
103
-
/// <param name="type">Image type - ImageDataViewType or VectorDataViewType. Defaults to ImageDataViewType if not specified.</param>
102
+
/// <param name="type">Image type flag - true for ImageDataViewType or false for VectorDataViewType. Defaults to true i.e. ImageDataViewType if not specified.</param>
104
103
/// <param name="columns">Names of input and output columns.</param>
0 commit comments