dotnet / machinelearning-modelbuilder

Simple UI tool to build custom machine learning models.
Creative Commons Attribution 4.0 International
266 stars 56 forks source link

The given key was not present in the dictionary #2880

Open vominhthanh2001 opened 8 months ago

vominhthanh2001 commented 8 months ago

at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary2.get_Item(TKey key) at Microsoft.ML.TorchSharp.AutoFormerV2.ObjectDetectionMetrics.ImageIoU(List1 objectLabel, List1 annotation, Dictionary2 iouDic, Dictionary2 groundTruthBoxes) at Microsoft.ML.TorchSharp.AutoFormerV2.ObjectDetectionMetrics.GenerateIOUDic(List1 annotations, List1 objectLabelList, Dictionary2 iouDic, Dictionary`2 groundTruthBoxes) at Microsoft.ML.TorchSharp.AutoFormerV2.ObjectDetectionMetrics.MeasureMetrics(IDataView dataView, Column labelCol, Column actualBoundingBoxColumn, Column predictedLabelCol, Column predictedBoundingBoxColumn, Column scoreCol) at Microsoft.ML.ModelBuilder.AutoMLService.LocalObjectDetectionMetricManager.Evaluate(MLContext context, IDataView eval) in //src/Microsoft.ML.ModelBuilder.AutoMLService/MetricManagers/LocalObjectDetectionMetricManager.cs:line 24 at Microsoft.ML.AutoML.SweepablePipelineRunner.Run(TrialSettings settings) at Microsoft.ML.AutoML.SweepablePipelineRunner.RunAsync(TrialSettings settings, CancellationToken ct) at Microsoft.ML.AutoML.AutoMLExperiment.d24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ML.ModelBuilder.AutoMLService.LocalObjectDetectionExperiment.d13.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/LocalObjectDetectionExperiment.cs:line 133 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ML.ModelBuilder.AutoMLEngine.d_21.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 212

bugTrain

Advanced training options optionsBug

File Result Coco : Select-2-objects-that-are-the-same-shape-7.json

LittleLittleCloud commented 8 months ago

@michaelgsharp Do you know what might cause this error? Unobservce label in test dataset?

thisIsDeadCode commented 4 months ago

I have the same problem, I created the Vott json using Vott I loaded it into VS but I get an error MLModel1-FB8SQJ.txt

image image image image

thisIsDeadCode commented 4 months ago

EKF-export.json

thisIsDeadCode commented 4 months ago

I left a couple of pictures and now this error is not reproduced This bug depends on the number of elements in json

image EKF-export.json