1 write to Options
Microsoft.ML.TorchSharp (1)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
526Options = options;
32 references to Options
Microsoft.ML.TorchSharp (32)
AutoFormerV2\ObjectDetectionTrainer.cs (32)
528PredictedLabelColumnName = new SchemaShape.Column(Options.PredictedLabelColumnName, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.UInt32, false); 529PredictedBoundingBoxColumn = new SchemaShape.Column(Options.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false); 530ConfidenceColumn = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false); 562outColumns[Options.PredictedLabelColumnName] = new SchemaShape.Column(Options.PredictedLabelColumnName, SchemaShape.Column.VectorKind.VariableVector, 565outColumns[Options.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Options.PredictedBoundingBoxColumnName, SchemaShape.Column.VectorKind.VariableVector, 568outColumns[Options.ScoreColumnName] = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.VectorKind.VariableVector, 576if (!inputSchema.TryFindColumn(Options.ImageColumnName, out var imageCol)) 577throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Image", Options.ImageColumnName); 579throw Host.ExceptSchemaMismatch(nameof(inputSchema), "Image", Options.ImageColumnName, 613ctx.SaveNonEmptyString(Options.LabelColumnName); 614ctx.SaveNonEmptyString(Options.PredictedLabelColumnName); 615ctx.SaveNonEmptyString(Options.BoundingBoxColumnName); 616ctx.SaveNonEmptyString(Options.PredictedBoundingBoxColumnName); 617ctx.SaveNonEmptyString(Options.ImageColumnName); 618ctx.SaveNonEmptyString(Options.ScoreColumnName); 620ctx.Writer.Write(Options.NumberOfClasses); 622ctx.Writer.Write(Options.ScoreThreshold); 623ctx.Writer.Write(Options.IOUThreshold); 736if (inputSchema.TryGetColumnIndex(parent.Options.ImageColumnName, out var col)) 767info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedLabelColumnName, new VectorDataViewType(new KeyDataViewType(typeof(uint), _parent.Options.NumberOfClasses)), labelBuilder.ToAnnotations()); 769info[1] = new DataViewSchema.DetachedColumn(_parent.Options.ScoreColumnName, new VectorDataViewType(NumberDataViewType.Single), meta.ToAnnotations()); 771info[2] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedBoundingBoxColumnName, new VectorDataViewType(NumberDataViewType.Single)); 808getImage = input.GetGetter<MLImage>(input.Schema[_parent.Options.ImageColumnName]); 832getImage = input.GetGetter<MLImage>(input.Schema[_parent.Options.ImageColumnName]); 856getImage = input.GetGetter<MLImage>(input.Schema[_parent.Options.ImageColumnName]); 881TensorCacher outputCacher = new TensorCacher(_parent.Options.NumberOfClasses); 973ImageUtils.Postprocess(imageTensor, pred, score, box, out outputCache.PredictedLabelsBuffer, out outputCache.ScoresBuffer, out outputCache.BoxBuffer, _parent.Options.ScoreThreshold, _parent.Options.IOUThreshold);