dotnet / dotnet/machinelearning-samples

Error with getting-started app `DeepLearning_ObjectDetection_Onnx`

Open
#814 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
4.7k
Forks
2.7k
Avg merge
2d 22h
Merged PRs (30d)
1

Description

Error with getting-started app `DeepLearning_ObjectDetection_Onnx`

I followed the model download and config steps [here](https://docs.microsoft.com/en-us/dotnet/machine-learning/tutorials/object-detection-onnx#prepare-your-data-and-pre-trained-model)

Error:
`Read model
Model location: C:\Users\Zachariah\source\repos\ObjectDetection\bin\Debug\netcoreapp3.0\../../../assets\Model\TinyYolo2_model.onnx
Default parameters: image size=(416,416)
System.ArgumentException: Directory "" does not exist.
at Microsoft.ML.Data.ImageLoadingTransformer..ctor(IHostEnvironment env, String imageFolder, Boolean type, ValueTuple`2[] columns)
at Microsoft.ML.Data.ImageLoadingEstimator..ctor(IHostEnvironment env, String imageFolder, Boolean type, ValueTuple`2[] columns)
at Microsoft.ML.ImageEstimatorsCatalog.LoadImages(TransformsCatalog catalog, String outputColumnName, String imageFolder, String inputColumnName)
at ObjectDetection.OnnxModelScorer.LoadModel(String modelLocation) in C:\Users\Zachariah\source\repos\ObjectDetection\OnnxModelScorer.cs:line 47
at ObjectDetection.OnnxModelScorer.Score(IDataView data) in C:\Users\Zachariah\source\repos\ObjectDetection\OnnxModelScorer.cs:line 68
at ObjectDetection.Program.Main(String[] args) in C:\Users\Zachariah\source\repos\ObjectDetection\Program.cs:line 35`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.