-
Notifications
You must be signed in to change notification settings - Fork 11
ObjectDetection App Issues #5
Description
I found the following issues when trying to use the included ObjectDetection solution for publishing, training, etc.
- When I set the project parameters correctly, none of the images can be loaded, and no detection regions, etc.
- I can Create the CustomVision project with it, but training and publishing the model does not work.
Training gave me this error:
Unhandled Exception: Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.CustomVisionErrorException: Operation returned an invalid status code 'BadRequest'
at Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.CustomVisionTrainingClient.d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.CustomVisionTrainingClientExtensions.d__88.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ObjectDetection.Program.Train() in C:\src\solution-accelerator-containerized-store\01 - Custom Vision Model\ObjectDetection\Program.cs:line 41
at ObjectDetection.Program.Main(String[] args) in C:\src\solution-accelerator-containerized-store\01 - Custom Vision Model\ObjectDetection\Program.cs:line 117
Publishing gave me this error:
Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at ObjectDetection.Program.Publish(String pubModelName) in C:\src\solution-accelerator-containerized-store\01 - Custom Vision Model\ObjectDetection\Program.cs:line 60
at ObjectDetection.Program.Main(String[] args) in C:\src\solution-accelerator-containerized-store\01 - Custom Vision Model\ObjectDetection\Program.cs:line 120
Prediction gave me this error:
Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at ObjectDetection.Program.Predict(String imageFile) in C:\src\solution-accelerator-containerized-store\01 - Custom Vision Model\ObjectDetection\Program.cs:line 82
at ObjectDetection.Program.Main(String[] args) in C:\src\solution-accelerator-containerized-store\01 - Custom Vision Model\ObjectDetection\Program.cs:line 123
Seems to be getting hung up on grabbing the ProjectID. If I manually paste the values into the code, it seems to work OK.