dotnet / dotnet/machinelearning-modelbuilder

Training Failed choosing local CPU in Object detection scenario, 'TorchSharp.torch' threw an exception

Offen
#2,891 7 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
GS Tutorial
Vorherrschende Sprache
Dockerfile
Sterne
285
Forks
66
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**System Information (please complete the following information):**
- 17.18.2.2415501
- Visual Studio Version: Visual Studio Community 2022, 17.9.5 (Installer reports All installations are up to date)

**Describe the bug**
Training Failed choosing local CPU in Object detection scenario

**To Reproduce**
In .mbconfig UI Scenario, choose Object detection, in Environment choose Local (CPU), Next step, in Data add .json file, created from vott after labeling images. (Images are then visible in Data Preview
Next step, Train
Training starts but is soon interrupted with Model Builder Error:
The type initializer for 'TorchSharp.torch' threw an exception.

**Expected behavior**
Expected to have a completed Training or some info if something is not installed or missing.

**Additional context**
Something may be wrong in my setup, I have had an older version of Model builder that I could train successfully. I have tried new projects, a clean install of Visual Studio and removed and reinstalled , both auto and manual installation of Model Builder (from Visual Studio Marketplace), tried two sets of different images, tagged in Vott.

Also noticing that under Advanced training options, in the fields Score threshold and IOU threshold the default settings (0.35 and 0.5) has red text next to them: "Not a valid input. The input must be a valid float and m"... it's impossible to read the rest of the sentence, and you can't expand the window. Trying to change those values have so far made no difference.

Some more details
From Log file
End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.AutoMLEngine.d__21.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 212

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginnen Sie mit der Position des Stacktraces in AutoMLEngine.cs bei Zeile 212 und reproduzieren Sie den Object detection-Workflow mit Local (CPU) und den beschriebenen .json-Daten. Untersuchen Sie das Trainingsprotokoll rund um den Fehler bei der Initialisierung von TorchSharp.torch und die Meldung zur threshold-Validierung. Als abgeschlossen gilt die Aufgabe, wenn der Trainingspfad entweder erfolgreich abgeschlossen wird oder einen umsetzbaren Setup-Fehler meldet.

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
35/100

Neue Issues direkt in Ihr Postfach

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