1 write to Option
Microsoft.ML.TorchSharp (1)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
131
Option
= options;
32 references to Option
Microsoft.ML.TorchSharp (32)
AutoFormerV2\ObjectDetectionTrainer.cs (32)
174
for (int i = 0; i <
Option
.MaxEpoch; i++)
181
var labelCol = input.Schema.GetColumnOrNull(
Option
.LabelColumnName);
183
transformer = new ObjectDetectionTransformer(Host,
Option
, trainer.Model, new DataViewSchema.DetachedColumn(labelCol.Value));
217
Parent.
Option
.NumberOfClasses,
235
learningRate: Parent.
Option
.InitLearningRate,
236
weight_decay: Parent.
Option
.WeightDecay);
240
LearningRateScheduler = MultiStepLR(Optimizer, Parent.
Option
.Steps);
245
var labelCol = input.GetColumn<VBuffer<uint>>(Parent.
Option
.LabelColumnName);
255
Parent.
Option
.NumberOfClasses = uniqueLabels.Count;
288
DataViewRowCursor cursor = input.GetRowCursor(input.Schema[Parent.
Option
.LabelColumnName], input.Schema[Parent.
Option
.BoundingBoxColumnName], input.Schema[Parent.
Option
.ImageColumnName]);
290
var boundingBoxGetter = cursor.GetGetter<VBuffer<float>>(input.Schema[Parent.
Option
.BoundingBoxColumnName]);
291
var imageGetter = cursor.GetGetter<MLImage>(input.Schema[Parent.
Option
.ImageColumnName]);
292
var labelGetter = cursor.GetGetter<VBuffer<uint>>(input.Schema[Parent.
Option
.LabelColumnName]);
355
if (Updates % Parent.
Option
.LogEveryNStep == 0)
462
inputSchema.TryFindColumn(
Option
.LabelColumnName, out var labelCol);
464
outColumns[
Option
.PredictedLabelColumnName] = new SchemaShape.Column(
Option
.PredictedLabelColumnName, SchemaShape.Column.VectorKind.VariableVector,
467
outColumns[
Option
.PredictedBoundingBoxColumnName] = new SchemaShape.Column(
Option
.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.VariableVector,
470
outColumns[
Option
.ScoreColumnName] = new SchemaShape.Column(
Option
.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector,
480
if (!inputSchema.TryFindColumn(
Option
.LabelColumnName, out var labelCol))
481
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label",
Option
.LabelColumnName);
483
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label",
Option
.LabelColumnName,
486
if (!inputSchema.TryFindColumn(
Option
.BoundingBoxColumnName, out var boundingBoxCol))
487
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "BoundingBox",
Option
.BoundingBoxColumnName);
489
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "BoundingBox",
Option
.BoundingBoxColumnName,
492
if (!inputSchema.TryFindColumn(
Option
.ImageColumnName, out var imageCol))
493
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Image",
Option
.ImageColumnName);
495
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Image",
Option
.ImageColumnName,