2 instantiations of ImageClassificationTrainer
Microsoft.ML.Vision (2)
VisionCatalog.cs (2)
103
new
ImageClassificationTrainer
(CatalogUtils.GetEnvironment(catalog), options);
130
return new
ImageClassificationTrainer
(CatalogUtils.GetEnvironment(catalog), labelColumnName,
64 references to ImageClassificationTrainer
Microsoft.ML.AutoML (2)
SweepableEstimator\Estimators\Images.cs (1)
45
var option = new
ImageClassificationTrainer
.Options
TrainerExtensions\MultiTrainerExtensions.cs (1)
13
using static Microsoft.ML.Vision.
ImageClassificationTrainer
;
Microsoft.ML.PerformanceTests (4)
ImageClassificationBench.cs (4)
80
var options = new
ImageClassificationTrainer
.Options()
84
Arch =
ImageClassificationTrainer
.Architecture.ResnetV250,
88
EarlyStoppingCriteria = new
ImageClassificationTrainer
.EarlyStopping(minDelta: 0.001f, patience: 20, metric:
ImageClassificationTrainer
.EarlyStoppingMetric.Loss),
Microsoft.ML.Samples (8)
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
78
var options = new
ImageClassificationTrainer
.Options()
86
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (4)
64
var options = new
ImageClassificationTrainer
.Options()
71
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
83
EarlyStoppingCriteria = new
ImageClassificationTrainer
.EarlyStopping(
85
metric:
ImageClassificationTrainer
.EarlyStoppingMetric.Loss),
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (2)
64
var options = new
ImageClassificationTrainer
.Options()
71
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
Microsoft.ML.Samples.GPU (8)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
78
var options = new
ImageClassificationTrainer
.Options()
86
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (4)
64
var options = new
ImageClassificationTrainer
.Options()
71
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
83
EarlyStoppingCriteria = new
ImageClassificationTrainer
.EarlyStopping(
85
metric:
ImageClassificationTrainer
.EarlyStoppingMetric.Loss),
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (2)
64
var options = new
ImageClassificationTrainer
.Options()
71
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
Microsoft.ML.TensorFlow.Tests (22)
TensorflowTests.cs (22)
1458
internal (string, string, string, bool) getInitialParameters(
ImageClassificationTrainer
.Architecture arch, string finalImagesFolderName)
1468
[InlineData(
ImageClassificationTrainer
.Architecture.ResnetV2101)]
1469
[InlineData(
ImageClassificationTrainer
.Architecture.MobilenetV2)]
1470
[InlineData(
ImageClassificationTrainer
.Architecture.ResnetV250)]
1471
[InlineData(
ImageClassificationTrainer
.Architecture.InceptionV3)]
1472
public void TensorFlowImageClassification(
ImageClassificationTrainer
.Architecture arch)
1500
var options = new
ImageClassificationTrainer
.Options()
1630
workspacePath, isReuse) = getInitialParameters(
ImageClassificationTrainer
.Architecture.ResnetV2101, _finalImagesFolderName);
1634
var options = new
ImageClassificationTrainer
.Options()
1641
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
1650
if (metric.Train.DatasetUsed ==
ImageClassificationTrainer
.ImageClassificationMetrics.Dataset.Train)
1749
Assert.True(File.Exists(Path.Combine(Path.GetTempPath(), "MLNET",
ImageClassificationTrainer
.ModelFileName[options.Arch])));
1757
[InlineData(
ImageClassificationTrainer
.EarlyStoppingMetric.Accuracy)]
1758
[InlineData(
ImageClassificationTrainer
.EarlyStoppingMetric.Loss)]
1759
public void TensorFlowImageClassificationEarlyStopping(
ImageClassificationTrainer
.EarlyStoppingMetric earlyStoppingMetric)
1787
workspacePath, isReuse) = getInitialParameters(
ImageClassificationTrainer
.Architecture.ResnetV2101, _finalImagesFolderName);
1791
var options = new
ImageClassificationTrainer
.Options()
1798
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
1799
EarlyStoppingCriteria = new
ImageClassificationTrainer
.EarlyStopping(metric: earlyStoppingMetric),
1870
var options = new
ImageClassificationTrainer
.Options()
1877
Arch =
ImageClassificationTrainer
.Architecture.ResnetV2101,
1885
var
pipeline = _mlContext.MulticlassClassification.Trainers.ImageClassification(options);
Microsoft.ML.Vision (20)
ImageClassificationTrainer.cs (13)
32
[assembly: LoadableClass(
ImageClassificationTrainer
.Summary, typeof(
ImageClassificationTrainer
),
33
typeof(
ImageClassificationTrainer
.Options),
35
ImageClassificationTrainer
.UserName,
36
ImageClassificationTrainer
.LoadName,
37
ImageClassificationTrainer
.ShortName)]
344
/// Options class for <see cref="
ImageClassificationTrainer
"/>.
497
/// Initializes a new instance of <see cref="
ImageClassificationTrainer
"/>
523
/// Initializes a new instance of <see cref="
ImageClassificationTrainer
"/>
564
var logger = Host.Start(nameof(
ImageClassificationTrainer
));
1336
/// Trains a <see cref="
ImageClassificationTrainer
"/> using both training and validation data,
1467
private readonly
ImageClassificationTrainer
.ImageProcessor _imageProcessor;
1472
_imageProcessor = new
ImageClassificationTrainer
.ImageProcessor(model._session,
VisionCatalog.cs (7)
88
/// Create <see cref="Microsoft.ML.Vision.
ImageClassificationTrainer
"/> using advanced options, which trains a Deep Neural Network(DNN) to classify images.
91
/// <param name="options">An <see cref="
ImageClassificationTrainer
.Options"/> object specifying advanced
92
/// options for <see cref="
ImageClassificationTrainer
"/>.</param>
100
public static
ImageClassificationTrainer
ImageClassification(
102
ImageClassificationTrainer
.Options options) =>
106
/// Create <see cref="Microsoft.ML.Vision.
ImageClassificationTrainer
"/>, which trains a Deep Neural Network(DNN) to classify images.
121
public static
ImageClassificationTrainer
ImageClassification(