New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object Detection Training throws Exception: fail to install runtime #2884
Comments
From the log it seems that the error is because the access to nuget.org server fails. Can you double check if you can visit the following link
The output log shows the command to install runtime where you can mannually copy and paste in command window to install runtime manually. If you share the output log file here I can point you to the two command. But you still need access to nuget.org in order to run those command though |
Using a web browser, I can connect to https://api.nuget.org/v3/index.json, as shown below. My output log file is as follows. (Confidential information is replaced with "xxx".) Please help provide manual installation commands. In addition, can the command be posted to "Developer Command Prompt for VS 2019" and executed directly? Thank you. |
You can manually install runtime by running the following commands (you probably need to swap user name from xxx back to actual name) dotnet 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"
dotnet 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\\" |
(Confidential information is replaced with "xxx".) I executed the first dotnet restore command, but the following error still occurred:
I guessed it was a proxy problem, so I added the proxy settings to C:\Users\xxx\AppData\Roaming\NuGet\NuGet.Config as follows:
After executing the command again, a new error occurs as follows:
|
System Information (please complete the following information):
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Training should run and complete.
Screenshots
Additional context
The following is the Log in the output pane: (Confidential information is replaced with "xxx".)
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.
The text was updated successfully, but these errors were encountered: