Skip to content
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

Unknown model file format version with Yolo Model Object Detection #3

Open
michael-hawker opened this issue Aug 4, 2021 · 3 comments

Comments

@michael-hawker
Copy link
Member

"The parameter is incorrect.\r\n\r\nFailed to load model with error: Unknown model file format version."

   at CommunityToolkit.Labs.Intelligent.ObjectDetection.YOLOObjectDetector.<InitModelAsync>d__9.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityToolkit.Labs.Intelligent.ObjectDetection.YOLOObjectDetector.<EvaluateFrame>d__10.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityToolkit.Labs.Intelligent.ObjectDetection.YOLOObjectDetector.<DetectObjects>d__8.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityToolkit.Labs.Intelligent.ObjectDetection.YOLOObjectDetector.<DetectObjects>d__6.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IntelligentLabsTest.ResultsPage.<OnNavigatedTo>d__4.MoveNext() in H:\code\Labs-IntelligentAPIs\IntelligentAPIsTester\ResultsPage.xaml.cs:line 74
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__7_0(Object state)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()

Happens for me in main and with NuGet package.

VS 16.9.8
Win 10 21H1 19043

@michael-hawker
Copy link
Member Author

Happens on this line:

_session = new LearningModelSession(_model, device);
   at Windows.AI.MachineLearning.LearningModelSession..ctor(LearningModel model, LearningModelDevice deviceToRunOn)
   at CommunityToolkit.Labs.Intelligent.ObjectDetection.YOLOObjectDetector.<InitModelAsync>d__9.MoveNext() in H:\code\Labs-IntelligentAPIs\ObjectDetector\YOLOObjectDetector.cs:line 191

@michael-hawker
Copy link
Member Author

This happens for me in their official sample as well:

image

@michael-hawker
Copy link
Member Author

michael-hawker commented Aug 5, 2021

Linking to issue in the sample repo here #404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant