dotnet / dotnet/machinelearning-samples

Issues when running E2E ObjectDetection sample in Azure

Offen
#635 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PowerShell
Sterne
4.7k
Forks
2.7k
Ø Merge
2 T. 22 Std.
Gemergte PRs (30 T.)
1

Beschreibung

When deploying the unmodified E2E sample https://github.com/dotnet/machinelearning-samples/tree/v1.2/samples/csharp/end-to-end-apps/DeepLearning_ObjectDetection_Onnx into an Azure AppService some issues occur.
I suppose that one of the purposes of the sample is to show how PrectionEnginePool may be used in the Azure so these issues should be resolved.
Azure AppService is a supported scenario according to: https://docs.microsoft.com/en-us/dotnet/machine-learning/how-to-guides/serve-model-web-api-ml-net

1. **the AppService does not even start in the default 32-bit mode.** The result is:
502 - Web server received an invalid response while acting as a gateway or proxy server.
I think this is something related with https://github.com/aspnet/AspNetCore/issues/6097 but I am not sure.
Setting 64-bit mode resolves this and the app starts.

2. You must **change the relative path to the images** because the folder structure in the Azure is little bit different than when running locally.
In the Get method in the ObjectDetectionController.cs the line in Azure must read:
` string imageFileRelativePath = @"assets" + url;`
Similarly other relative paths.

3. **Now click on any of the images. DivisionByZero is raised.** This is described also in the https://github.com/dotnet/machinelearning/issues/4171

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Stelle das unveränderte DeepLearning_ObjectDetection_Onnx-Beispiel in einem Azure AppService bereit und beginne mit ObjectDetectionController.cs, indem du die von seiner Get-Methode verwendeten relativen Bildpfade überprüfst. Vergleiche das Verhalten von 32-Bit und 64-Bit und klicke anschließend auf die Beispielbilder; abgeschlossen ist die Aufgabe, wenn die App in der unterstützten Konfiguration startet, die Pfade aufgelöst werden und kein DivisionByZero auftritt, wobei issue 4171 als verwandter Kontext dient.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, csharp
Bereich
cloud, machine-learning
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.