dotnet / dotnet/machinelearning-modelbuilder
Model Builder - Object Detection (Local) The system cannot find the file specified
- 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):**
- Model Builder Version 2022 (17.17.0.2332602)
- Visual Studio 2022
**Describe the bug**
- On which step of the process did you run into an issue:
- Clear description of the problem:
**To Reproduce**
Steps to reproduce the behavior:
1. Complete the Labelling with VOTT
2. Create Console Project
3. Right click "project name" at explorer inside VS2002 -> Add -> Machine Model Learning
4. Create a new filename detection.mbconfig
5. Select "Object Detection (local) in Scenario
6. Select "Local (CPU)" since my laptop doesn't have a good GPU (Click Next Step)
7. Select the Json file exported from VOTT, data preview without any issue. (Click Next Step)
8. At the Train page, click "Start Training"
9. Error produce, with "The system cannot find the file specified"
**Expected behavior**
Was followed the step from the internet, but ended up with the errors.
**Screenshots**

**Additional context**
(File logs as below):
2023-09-11 00:43:45.7794 DEBUG update TrainViewModel_12.RemainingSeconds (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:45.7794 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:46.7950 DEBUG update TrainViewModel_12.RemainingSeconds (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:46.7950 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:47.7964 DEBUG update TrainViewModel_12.RemainingSeconds (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:47.7964 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.ModelsExploredCount (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.RemoteRunStatusUrl (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.BestTrainer (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.TrainStatus (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.IsResetTrainingEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.ExplorationTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.ExplorationTimeLabel (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.IsResetTrainingEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.HasFinishedTraining (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.IsTrainingOptionEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.TrainButtonLabel (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2248 DEBUG update TrainViewModel_12.IsTrainingButtonEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2308 DEBUG update TrainViewModel_12.TrainButtonLabel (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2308 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2308 DEBUG update TrainViewModel_12.IsTraining (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2308 DEBUG update TrainViewModel_12.IsCompleted (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2308 DEBUG update ModelBuilderDataContext_0.CreateConsumeTabViewModelAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2308 DEBUG update ModelBuilderDataContext_0.CreateEvaluateTabViewModelAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2308 DEBUG update ModelBuilderDataContext_0.GetCompletedTabAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2308 DEBUG update TrainViewModel_12.TrainingDidNotSucceed (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.RemainingSeconds (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.TrainStatus (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.IsResetTrainingEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.IsTrainingOptionEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.IsTrainingButtonEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.TrainButtonLabel (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.IsTraining (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.IsCompleted (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update ModelBuilderDataContext_0.CreateConsumeTabViewModelAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update ModelBuilderDataContext_0.CreateEvaluateTabViewModelAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update ModelBuilderDataContext_0.GetCompletedTabAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2632 DEBUG update TrainViewModel_12.TrainingDidNotSucceed (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2802 INFO start Object detection (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-09-11 00:43:49.2802 DEBUG env:path: C:\Users\username\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.99.5;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\x64;C:\opencv\build\include;C:\opencv\build\x64\vc14\bin;C:\opencv\build\x64\vc14\lib;C:\opencv\build\x64\vc15\bin;C:\opencv\build\x64\vc15\lib;C:\opencv\build\bin;C:\Program Files\nodejs;C:\Users\username\AppData\Local\Microsoft\WindowsApps;C:\Users\username\.dotnet\tools;C:\Program Files\Azure Data Studio\bin;C:\Users\username\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\username\AppData\Local\Pandoc\;C:\Users\username\AppData\Roaming\npm;C:\Program Files\nodejs; (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2802 DEBUG C:\Users\username\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.99.5\obj (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2802 INFO restore "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\aeowiwmr.5oo\AutoMLService\RuntimeManager\torchsharp.cpu.csproj" --configfile "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\aeowiwmr.5oo\AutoMLService\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.99.5 /p:TorchSharpCudaRuntimeVersion=1.13.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\username\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.99.5\obj" (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-09-11 00:43:49.2802 INFO publish "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\aeowiwmr.5oo\AutoMLService\RuntimeManager\torchsharp.cpu.csproj" -r win-x64 -c Release --no-self-contained -o "C:\Users\username\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.99.5" --no-restore /p:UsingToolXliff=false /p:TorchSharpVersion=0.99.5 /p:TorchSharpCudaRuntimeVersion=1.13.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseOutputPath="C:\Users\username\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.99.5\bin\\" /p:BaseIntermediateOutputPath="C:\Users\username\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.99.5\obj\\" (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-09-11 00:43:49.2802 INFO start installing runtime in C:\Users\username\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.99.5 (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-09-11 00:43:49.2988 DEBUG The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Microsoft.ML.ModelBuilder.AutoMLService.RuntimeManager.InstallRuntimeAsync(CancellationToken ct) in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/RuntimeManager/RuntimeManager.cs:line 153
at Microsoft.ML.ModelBuilder.AutoMLService.LocalObjectDetectionExperiment.d__13.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/LocalObjectDetectionExperiment.cs:line 51
--- 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 169 (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.TrainStatus (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.IsResetTrainingEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.IsTrainingOptionEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.IsTrainingButtonEnabled (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.TrainButtonLabel (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.IsTraining (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.IsCompleted (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update ModelBuilderDataContext_0.CreateConsumeTabViewModelAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update ModelBuilderDataContext_0.CreateEvaluateTabViewModelAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update ModelBuilderDataContext_0.GetCompletedTabAsync (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:49.2988 DEBUG update TrainViewModel_12.TrainingDidNotSucceed (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:50.2639 DEBUG update TrainViewModel_12.RemainingSeconds (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
2023-09-11 00:43:50.2639 DEBUG update TrainViewModel_12.RemainingTime (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia da RuntimeManager.cs alla riga 153 e LocalObjectDetectionExperiment.cs alla riga 51, usando come punto di ingresso i passaggi registrati di restore, publish e runtime-install. Riproduci l’addestramento locale di object detection su CPU a partire dal VOTT JSON, quindi individua quale avvio del processo fallisce. Il lavoro è completato quando il runtime viene installato correttamente e l’addestramento procede senza l’errore di file mancante.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Ambito
- desktop-dev, machine-learning
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100