dotnet / dotnet/machinelearning-modelbuilder
Training Failed choosing local CPU in Object detection scenario, 'TorchSharp.torch' threw an exception
- Lenguaje dominante
- Dockerfile
- Estrellas
- 285
- Forks
- 66
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comience con la ubicación del stack trace en AutoMLEngine.cs, en la línea 212, y reproduzca el flujo de trabajo de Object detection usando Local (CPU) con los datos .json descritos. Inspeccione el registro de entrenamiento alrededor del fallo del inicializador de TorchSharp.torch y del mensaje de validación de threshold. Se considera terminado cuando la ruta de entrenamiento se completa o informa de un error de configuración accionable.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp
- Área
- machine-learning
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100