dotnet / machinelearning-modelbuilder

Simple UI tool to build custom machine learning models.
Creative Commons Attribution 4.0 International
264 stars 56 forks source link

Model Builder - Object Detection (Local) The system cannot find the file specified #2767

Open Jayz816 opened 1 year ago

Jayz816 commented 1 year ago

System Information (please complete the following information):

Describe the bug

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 image

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 TrainViewModel12.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)

LittleLittleCloud commented 12 months ago

Do you have dotnet installed on your system?

NiLpzb commented 6 months ago

有处理了吗?

LittleLittleCloud commented 6 months ago

@NiLpzb Did you also hit the same issue?

NiLpzb commented 6 months ago

@NiLpzb您是否也遇到了同样的问题?

遇到 不知道怎么处理 image