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
Training Failed choosing local CPU in Object detection scenario, 'TorchSharp.torch' threw an exception #2891
Comments
I had the same error, however you can try to use Object Detection on Aruze Machine Learning. |
Thanks, good to know! I'll just have to wait for some update then. |
@NickAtMixxus Can you share the complete log of model builder(where you can find the url on visual studio output window),, from you mention (The type initializer for 'TorchSharp.torch' threw an exception.) I wonder if this error is caused by the failure of loading torch.dll |
OK. Just a quick update, I have also tried training on GPU, that training is also quickly aborted with an error message. (I have installed CUDA 10.1 since that was mentioned in an Image Classification tutorial, I tried previously with a recent CUDA version but did not seem to matter.) Attaching files with message from Output window from CPU training and GPU training, and complete LOG files also from both CPU and GPU training. And here are the error messages for each training Error Message CPU Training The type initializer for 'TorchSharp.torch' threw an exception. at Microsoft.ML.TorchSharp.Utils.TorchUtils.InitializeDevice(IHostEnvironment env) Error Message GPU Training The type initializer for 'TorchSharp.torch' threw an exception. |
System Information (please complete the following information):
Describe the bug
Training Failed choosing local CPU in Object detection scenario
To Reproduce
In .mbconfig UI Scenario, choose Object detection, in Environment choose Local (CPU), Next step, in Data add .json file, created from vott after labeling images. (Images are then visible in Data Preview
Next step, Train
Training starts but is soon interrupted with Model Builder Error:
The type initializer for 'TorchSharp.torch' threw an exception.
Expected behavior
Expected to have a completed Training or some info if something is not installed or missing.
Additional context
Something may be wrong in my setup, I have had an older version of Model builder that I could train successfully. I have tried new projects, a clean install of Visual Studio and removed and reinstalled , both auto and manual installation of Model Builder (from Visual Studio Marketplace), tried two sets of different images, tagged in Vott.
Also noticing that under Advanced training options, in the fields Score threshold and IOU threshold the default settings (0.35 and 0.5) has red text next to them: "Not a valid input. The input must be a valid float and m"... it's impossible to read the rest of the sentence, and you can't expand the window. Trying to change those values have so far made no difference.
Some more details
From Log file
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 212
The text was updated successfully, but these errors were encountered: