You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloned this repo, downloaded the yolov4.onnx model, changed the modelPath field to the location of the onnx file, ran the project and encountered an ArgumentException on Line 68 of Program.cs when processing kite_416.jpg. If I remove that file name from Line 63, execution works just fine. Strange.
at System.Drawing.Image.get_Height()
at Microsoft.ML.Transforms.Image.ImageResizingTransformer.Mapper.<>c__DisplayClass3_0.b__1(Bitmap& dst)
at Microsoft.ML.Transforms.Image.ImagePixelExtractingTransformer.Mapper.<>c__DisplayClass5_01.<GetGetterCore>b__1(VBuffer1& dst)
at Microsoft.ML.Transforms.Onnx.OnnxTransformer.Mapper.NamedOnnxValueGetterVec1.GetNamedOnnxValue() at Microsoft.ML.Transforms.Onnx.OnnxTransformer.Mapper.UpdateCacheIfNeeded(Int64 position, INamedOnnxValueGetter[] srcNamedOnnxValueGetters, String[] activeOutputColNames, OnnxRuntimeOutputCacher outputCache) at Microsoft.ML.Transforms.Onnx.OnnxTransformer.Mapper.<>c__DisplayClass12_01.b__0(VBuffer1& dst) at Microsoft.ML.Data.TypedCursorable1.TypedRowBase.<>c__DisplayClass8_01.<CreateDirectVBufferSetter>b__0(TRow row) at Microsoft.ML.Data.TypedCursorable1.TypedRowBase.FillValues(TRow row)
at Microsoft.ML.Data.TypedCursorable1.RowImplementation.FillValues(TRow row) at Microsoft.ML.PredictionEngineBase2.FillValues(TDst prediction)
at Microsoft.ML.PredictionEngine2.Predict(TSrc example, TDst& prediction) at Microsoft.ML.PredictionEngineBase2.Predict(TSrc example)
at YOLOv4MLNet.Program.Main() in C:\Users\david\Projects\YOLOv4MLNet-master\YOLOv4MLNet\Program.cs:line 68
The text was updated successfully, but these errors were encountered:
This seems to only be occurring on the iteration of the foreach loop (Line 63) for kite_416.jpg, when I remove that from being processed, execution works fine. Strange.
Hi @dstampher, thanks for your message. This is indeed a known issue and I have created dotnet/machinelearning#5469 to report it. I used this repos to demonstrate the error, and unfortunately it seems the bug is still therr
Cloned this repo, downloaded the yolov4.onnx model, changed the modelPath field to the location of the onnx file, ran the project and encountered an ArgumentException on Line 68 of Program.cs when processing kite_416.jpg. If I remove that file name from Line 63, execution works just fine. Strange.
@BobLd
Here is the Stack Trace:
at System.Drawing.Image.get_Height()
at Microsoft.ML.Transforms.Image.ImageResizingTransformer.Mapper.<>c__DisplayClass3_0.b__1(Bitmap& dst)
at Microsoft.ML.Transforms.Image.ImagePixelExtractingTransformer.Mapper.<>c__DisplayClass5_0
1.<GetGetterCore>b__1(VBuffer
1& dst)at Microsoft.ML.Transforms.Onnx.OnnxTransformer.Mapper.NamedOnnxValueGetterVec
1.GetNamedOnnxValue() at Microsoft.ML.Transforms.Onnx.OnnxTransformer.Mapper.UpdateCacheIfNeeded(Int64 position, INamedOnnxValueGetter[] srcNamedOnnxValueGetters, String[] activeOutputColNames, OnnxRuntimeOutputCacher outputCache) at Microsoft.ML.Transforms.Onnx.OnnxTransformer.Mapper.<>c__DisplayClass12_0
1.b__0(VBuffer1& dst) at Microsoft.ML.Data.TypedCursorable
1.TypedRowBase.<>c__DisplayClass8_01.<CreateDirectVBufferSetter>b__0(TRow row) at Microsoft.ML.Data.TypedCursorable
1.TypedRowBase.FillValues(TRow row)at Microsoft.ML.Data.TypedCursorable
1.RowImplementation.FillValues(TRow row) at Microsoft.ML.PredictionEngineBase
2.FillValues(TDst prediction)at Microsoft.ML.PredictionEngine
2.Predict(TSrc example, TDst& prediction) at Microsoft.ML.PredictionEngineBase
2.Predict(TSrc example)at YOLOv4MLNet.Program.Main() in C:\Users\david\Projects\YOLOv4MLNet-master\YOLOv4MLNet\Program.cs:line 68
The text was updated successfully, but these errors were encountered: