dotnet / machinelearning-modelbuilder

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

La conexión de JSON-RPC con la parte remota se perdió antes de que se pudiera completar la solicitud. #2896

Open andresledo opened 7 months ago

andresledo commented 7 months ago

System Information (please complete the following information):

Describe the bug I have a problem training a text classification model with a csv. When I click on train using the graphical interface I get this error.

I have reinstalled Visual studio and the ML.NET extension itself,

2024-04-09 17:52:04.1689 INFO Set log file path to C:\Users\andre\AppData\Local\Temp\MLVSTools\logs\Department-AHPLLA.txt (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:04.4397 DEBUG Start AutoMLService pid: 25104 (Microsoft.ML.ModelBuilder.Utils.Logger.Debug) 2024-04-09 17:53:04.6867 INFO start text classification (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:04.6867 DEBUG env:path: C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Users\andre\platform-tools;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Bitvise SSH Client;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\Users\andre\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\andre\AppData\Local\Programs\Python\Python310\;C:\Users\andre\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\andre\AppData\Local\Programs\Python\Python311\;C:\Users\andre\AppData\Local\Microsoft\WindowsApps;C:\Users\andre\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\andre.dotnet\tools;F:\laragon\bin\php\php-8.1.10-Win32-vs16-x64;C:\Users\andre\AppData\Roaming\Composer\vendor\bin;C:\Users\andre\AppData\Roaming\npm;C:\Program Files\Git\cmd;C:\Users\andre\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\andre\AppData\Local\Programs\Python\Python310\;C:\Users\andre\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\andre\AppData\Local\Programs\Python\Python311\;C:\Users\andre\AppData\Local\Microsoft\WindowsApps;C:\Users\andre\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\andre.dotnet\tools;C:\Program Files\Azure Data Studio\bin;F:\laragon\bin\php\php-8.1.10-Win32-vs16-x64;C:\Users\andre\AppData\Roaming\Composer\vendor\bin;C:\Users\andre\AppData\Roaming\npm (Microsoft.ML.ModelBuilder.Utils.Logger.Debug) 2024-04-09 17:53:04.6917 DEBUG C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3\obj (Microsoft.ML.ModelBuilder.Utils.Logger.Debug) 2024-04-09 17:53:04.6917 INFO restore "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\torchsharp.cpu.csproj" --configfile "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.98.3 /p:TorchSharpCudaRuntimeVersion=1.11.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3\obj" (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:04.6917 INFO publish "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\torchsharp.cpu.csproj" -r win-x64 -c Release --no-self-contained -o C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3 --no-restore /p:UsingToolXliff=false /p:TorchSharpVersion=0.98.3 /p:TorchSharpCudaRuntimeVersion=1.11.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseOutputPath="C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3\bin\" /p:BaseIntermediateOutputPath="C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3\obj\" (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:04.6917 INFO start installing runtime in C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3 (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:05.1656 INFO Determinando los proyectos que se van a restaurar... (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:05.2931 INFO Todos los proyectos están actualizados para la restauración. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:05.4523 INFO Versión de MSBuild 17.9.6+a4ecab324 para .NET (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:05.8474 INFO torchsharp.cpu -> C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3\bin\Release\netstandard2.0\win-x64\torchsharp.cpu.dll (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:05.8474 INFO torchsharp.cpu -> C:\Users\andre\AppData\Local\Temp\ModelBuilder\torchsharp-cpu-0.98.3\ (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:05.8924 INFO install runtime successfully (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:07.0040 INFO [Source=AutoMLExperiment-ChildContext, Kind=Trace] [Source=NasBertTrainer; TrainModel, Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:08.0131 INFO [Source=AutoMLExperiment-ChildContext, Kind=Trace] [Source=NasBertTrainer; Ensuring model file is present., Kind=Trace] Channel started (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:08.0131 INFO [Source=AutoMLExperiment-ChildContext, Kind=Trace] [Source=NasBertTrainer; Ensuring model file is present., Kind=Trace] Channel finished. Elapsed 00:00:00.0025244. (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:08.0131 INFO [Source=AutoMLExperiment-ChildContext, Kind=Trace] [Source=NasBertTrainer; Ensuring model file is present., Kind=Trace] Channel disposed (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:08.0691 INFO [Source=AutoMLExperiment-ChildContext, Kind=Trace] [Source=NasBertTrainer; TrainModel, Kind=Trace] Starting epoch 0 (Microsoft.ML.ModelBuilder.Utils.Logger.Info) 2024-04-09 17:53:13.4437 DEBUG La conexi n de JSON-RPC con la parte remota se perdi antes de que se pudiera completar la solicitud. en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) en StreamJsonRpc.JsonRpc.d162.MoveNext() --- Fin del seguimiento de la pila de la ubicaci n anterior donde se produjo la excepci n --- en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) en StreamJsonRpc.JsonRpc.d151`1.MoveNext() --- Fin del seguimiento de la pila de la ubicaci n anterior donde se produjo la excepci n --- en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) en Microsoft.ML.ModelBuilder.ViewModels.TrainViewModel.<b__92_0>d.MoveNext() (Microsoft.ML.ModelBuilder.Utils.Logger.Debug)

LittleLittleCloud commented 7 months ago

@andresledo Can you upgrade model builder to 17.18.2 and try again? We push a fix to this json rpc lost connect issue in our most recent release.