dotnet / dotnet/machinelearning-samples
Unable to run/debug application OnnxObjectDetectionWeb
- Vorherrschende Sprache
- PowerShell
- Sterne
- 4.7k
- Forks
- 2.7k
- Ø Merge
- 2 T. 22 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Hi all - I have cloned the app, followed the instructions in the readme file, but I'm unable to run the Web App OnnxObjectDetectionWeb. I'm using Visual Studio 2019 Pro and I have enabled the "Preview Features" as recommended in the guide.
I'm receiving the following error
**System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'**
Issue happens in line 25, file OnnxModelConfigurator.cs
```
var pipeline = mlContext.Transforms.ResizeImages(resizing: ImageResizingEstimator.ResizingKind.Fill, outputColumnName: onnxModel.ModelInput, imageWidth: ImageSettings.imageWidth, imageHeight: ImageSettings.imageHeight, inputColumnName: nameof(ImageInputData.Image))
.Append(mlContext.Transforms.ExtractPixels(outputColumnName: onnxModel.ModelInput))
.Append(mlContext.Transforms.ApplyOnnxModel(modelFile: onnxModel.ModelPath, outputColumnName: onnxModel.ModelOutput, inputColumnName: onnxModel.ModelInput));
```
Any ideas how to fix it?
Beitragsleitfaden
Rechercherichtung
Beginne mit den README-Anweisungen für OnnxObjectDetectionWeb und reproduziere den Fehler in Visual Studio 2019. Untersuche Zeile 25 von OnnxModelConfigurator.cs, insbesondere die Pipeline, die ApplyOnnxModel enthält, und verwende die gemeldete AccessViolationException, um die Ursache einzugrenzen. Als erledigt gilt die Aufgabe, wenn die Webanwendung ohne diese Ausnahme ausgeführt und debuggt werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- machine-learning
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 32/100