dotnet / dotnet/machinelearning-samples

Unable to run/debug application OnnxObjectDetectionWeb

Aperta
#879 3 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
PowerShell
Stelle
4.7k
Fork
2.7k
Merge medio
2g 22h
PR unite (30g)
1

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con le istruzioni del README per OnnxObjectDetectionWeb e riproduci il problema in Visual Studio 2019. Ispeziona la riga 25 di OnnxModelConfigurator.cs, in particolare la pipeline che contiene ApplyOnnxModel, e usa l’AccessViolationException segnalata per restringere la causa. Il lavoro è completato quando l’applicazione web può essere eseguita e sottoposta a debug senza questa eccezione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
machine-learning
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
32/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.