dotnet / dotnet/machinelearning-modelbuilder

Object Detection Training throws Exception: fail to install runtime

Open
#2,884 4 comments 0 reactions 0 assignees View on GitHub
GS Tutorial
Dominant language
Dockerfile
Stars
285
Forks
66
PR merge metrics
No merged PRs in 30d

Description

**System Information (please complete the following information):**
- Model Builder or CLI Version: 16.18.2.2415501
- Visual Studio Version (if applicable): Visual Studio Professional 2019 (version 16.10.3)

**Describe the bug**
- On which page of the tutorial did you run into an issue (URL): https://learn.microsoft.com/zh-tw/dotnet/machine-learning/tutorials/object-detection-model-builder
- Clear description of the problem: The error message "fail to install runtime" appears when using CPU training.

**To Reproduce**
Steps to reproduce the behavior:
1. In the Scenario step of Model Builder, select the Object Detection scenario.
2. In the Environment step, select "CPU" (my CPU is Intel i5-8500, RAM 33GB).
3. In the Data step, select the button in the Inputs section and use File Explorer to select StopSignObjDetection-export.json located in the Stop-Signs/vott-json-export directory.
4. In the Train step, select the Start training button.
5. The error message "**fail to install runtime**" pops up.

**Expected behavior**
Training should run and complete.

**Screenshots**
![07_MB18_train_08_訓練_fail to install runtime__彈出錯誤](https://github.com/dotnet/machinelearning-modelbuilder/assets/14954221/e9bcc747-731b-4c75-b828-426b397a578c)

**Additional context**
The following is the Log in the output pane: (Confidential information is replaced with "xxx".)
```
Set log file path to C:\Temp\MLVSTools\logs\ObjectDetection-NBAZQS.txt
Image List:
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\joshua-hoehne-WPrTKRw8KRQ-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\yannis-h-Sqez8_QTi8o-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\will-porada-ZaGcU6BxJEc-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\untitled-photo-3d6zCZ4lpBE-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\tyler-nix-ahee6DMcUcI-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\tom-dillon-t9Eaei-jz7Y-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\suad-kamardeen-EcQW_Caifz8-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\sandy-ching-ixLUOtNSSHQ-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\samuel-sng-Uj5tQyHS2d0-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\sam-xu-FgY6bF6emj0-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\ron-mcclenny-EpHH_NKwKkE-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\renan-kamikoga-vxx6ilmR-W4-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\phil-garrison-ezvpHWyqsYg-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\pedro-da-silva-unEmGQqdO7Q-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\olivia-connell-Tc9KWrlOL0E-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\naina-vij--j35s3zjPKU-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\melanie-these-mXIViwsTvIc-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\mason-wilkes-q-nm36mpsDw-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\marcos-mathias-Jd7jw1Vf_aI-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\kevork-kurdoghlian-eB2YX2TzNIA-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\luke-van-zyl-rKSHh6nEG1g-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\kevin-lee-dU8dAD8KoOI-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\kelly-sikkema-4KzwQGsDRvA-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\juli-kosolapova-DmtblAatFtk-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\josh-wilburne-3Cs4mF7fL3w-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\jose-alonso-fl9kHTSPSvk-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\jon-tyson-QNp4m7gU7BA-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\jon-tyson-1IqQDH6KgdU-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\john-matychuk-dJdcb11aboQ-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\joel-mott-9r9Ex5iEc5o-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\jad-limcaco-Y_J0phaFy2g-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\giorgio-trovato-7PUrk4B18tY-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\free-to-use-sounds-Vkt3uDeDkdg-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\emiel-van-betsbrugge-rogwZG1NfII-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\eilis-garvey-rb_PpjzWKnU-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\doyoun-seo-Xe1S9aq2fqg-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\diego-lozano-AmZC7bCrsko-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\david-preston-mW2NETqR49A-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\david-preston--t7S0WPRr4E-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\chris-benson-h0UG2Bd_Few-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\chris-bair-PJLDC3tA0Sc-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\brantley-neal-_CAvB1vYIlY-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\branden-tate-XgEHOPn7h_E-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\bogomil-mihaylov-OHxTNeAtNRs-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\ben-mater-YO3iFGBN6TU-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\arthur-osipyan-vLusIJAYy_Q-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\anton-mishin-_AR3i6Gck0Q-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\andrii-leonov-W_rQAwVRPgg-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\alexandre-lecocq-ndBWgMLw6Bc-unsplash.jpg
Image: D:\xxx\xxx\Project\AI\ML.NET\08_ObjectDetection\Stop-Signs\ajda-atz-HEKgHLpNgGk-unsplash.jpg
start Object detection
restore "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj" --configfile "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.101.5 /p:TorchSharpCudaRuntimeVersion=2.1.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5\obj"
publish "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj" -r win-x64 -c Release --no-self-contained -o "C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5" --no-restore /p:UsingToolXliff=false /p:TorchSharpVersion=0.101.5 /p:TorchSharpCudaRuntimeVersion=2.1.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseOutputPath="C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5\bin\\" /p:BaseIntermediateOutputPath="C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5\obj\\"
start installing runtime in C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5
正在判斷要還原的專案...
C:\Program Files\dotnet\sdk\5.0.301\NuGet.targets(131,5): error : 無法載入來源 https://api.nuget.org/v3/index.json 的服務索引。 [c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj]
C:\Program Files\dotnet\sdk\5.0.301\NuGet.targets(131,5): error : 連線嘗試失敗,因為連線對象有一段時間並未正確回應,或是連線建立失敗,因為連線的主機無法回應。 (api.nuget.org:443) [c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj]
C:\Program Files\dotnet\sdk\5.0.301\NuGet.targets(131,5): error : 連線嘗試失敗,因為連線對象有一段時間並未正確回應,或是連線建立失敗,因為連線的主機無法回應。 [c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj]
clean up
```

What runtime package failed to install?
Is there a way to manually install it to solve this problem so that I can continue the training process? Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.