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
Added functionality to load images as VBuffer<byte> in ImageLoader. If no DataViewType options are provided it defaults to loading images as ImageDataViewType. Made LoadImages a part of the sample in ResnetV2101TransferLearningTrainTestSplit.cs. Addressed some of the comments from Zeeshan and Yael. Added a unit test for testing the API. Added TargetFrameworks to get cross platform functionality for System.IO.Stream.Read(Span<Byte>) which doesn't work for netstandard2.0.
Copy file name to clipboardExpand all lines: docs/samples/Microsoft.ML.Samples/Dynamic/ImageClassification/ResnetV2101TransferLearningTrainTestSplit.cs
+24-58
Original file line number
Diff line number
Diff line change
@@ -56,18 +56,22 @@ public static void Example()
56
56
57
57
IDataViewtrainDataset=trainTestData.TrainSet;
58
58
IDataViewtestDataset=trainTestData.TestSet;
59
-
60
-
varpipeline=mlContext.Model.ImageClassification(
61
-
"ImageVBuf","Label",
62
-
// Just by changing/selecting InceptionV3 here instead of
63
-
// ResnetV2101 you can try a different architecture/pre-trained
/// Loads the images from the <see cref="ImageLoadingTransformer.ImageFolder" /> into memory.
122
+
/// </summary>
123
+
/// <remarks>
124
+
/// The image get loaded in memory as a <see cref="VectorDataViewType" /> of bytes.
125
+
/// Loading is the first step of almost every pipeline that does image processing, and further analysis on images.
126
+
/// The images to load need to be in the formats supported by <see cref = "VectorDataViewType" /> of bytes.
127
+
/// For end-to-end image processing pipelines, and scenarios in your applications, see the
128
+
/// <a href="https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/getting-started"> examples in the machinelearning-samples github repository.</a>
/// Create a <see cref="ImagePixelExtractingEstimator"/>, which extracts pixels values from the data specified in column: <paramref name="inputColumnName"/>
0 commit comments