1 write to Parent
Microsoft.ML.TorchSharp (1)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
206Parent = parent;
18 references to Parent
Microsoft.ML.TorchSharp (18)
AutoFormerV2\ObjectDetectionTrainer.cs (18)
213Device = TorchUtils.InitializeDevice(Parent.Host); 217Parent.Option.NumberOfClasses, 226Device = TorchUtils.InitializeDevice(Parent.Host); 235learningRate: Parent.Option.InitLearningRate, 236weight_decay: Parent.Option.WeightDecay); 240LearningRateScheduler = MultiStepLR(Optimizer, Parent.Option.Steps); 245var labelCol = input.GetColumn<VBuffer<uint>>(Parent.Option.LabelColumnName); 255Parent.Option.NumberOfClasses = uniqueLabels.Count; 261var destDir = Path.Combine(((IHostEnvironmentInternal)Parent.Host).TempFilePath, "mlnet"); 269using (var ch = (Parent.Host as IHostEnvironment).Start("Ensuring model file is present.")) 271var ensureModel = ResourceManagerUtils.Instance.EnsureResourceAsync(Parent.Host, ch, ModelUrl, destFileName, destDir, timeout); 288DataViewRowCursor cursor = input.GetRowCursor(input.Schema[Parent.Option.LabelColumnName], input.Schema[Parent.Option.BoundingBoxColumnName], input.Schema[Parent.Option.ImageColumnName]); 290var boundingBoxGetter = cursor.GetGetter<VBuffer<float>>(input.Schema[Parent.Option.BoundingBoxColumnName]); 291var imageGetter = cursor.GetGetter<MLImage>(input.Schema[Parent.Option.ImageColumnName]); 292var labelGetter = cursor.GetGetter<VBuffer<uint>>(input.Schema[Parent.Option.LabelColumnName]); 355if (Updates % Parent.Option.LogEveryNStep == 0)