dotnet / dotnet/machinelearning-modelbuilder

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

Aperta
#2,891 7 commenti 2 reazioni 0 assegnatari Vedi su GitHub
GS Tutorial
Lingua principale
Dockerfile
Stelle
285
Fork
66
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Iniziare dalla posizione dello stack trace in AutoMLEngine.cs alla riga 212 e riprodurre il workflow Object detection usando Local (CPU) con i dati .json descritti. Ispezionare il log di training in corrispondenza dell’errore dell’inizializzatore TorchSharp.torch e del messaggio di validazione di threshold. Il lavoro è completato quando il percorso di training termina oppure segnala un errore di configurazione risolvibile.

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.