Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

ObjectDetection App Issues #5

@skaschimer

Description

@skaschimer

I found the following issues when trying to use the included ObjectDetection solution for publishing, training, etc.

  1. When I set the project parameters correctly, none of the images can be loaded, and no detection regions, etc.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions