Form recognizer labelling tool (FOTT preview site) - Unable to train model after successfully labeling forms

Shan Sudarshan 1 Reputation point
2021-05-08T21:18:45.543+00:00

Hi Team,

I was following the instructions here: https://learn.microsoft.com/en-us/azure/cognitive-services/form-recognizer/quickstarts/label-tool?tabs=v2-1
(using the FOTT preview site that's found under "Try it out")

Steps taken:

  • Setup free tier subscription
  • Setup form recognizer service resource
  • Setup storage (blob) and created a main folder and two subfolders (train and test) where I put my .JPG files
  • SAS URL is pointing to the main folder where I supplied the train folder as a sourceFilter
  • Tested the service via PostMan (formrecognizer/v2.1/preview.3/custom/models, get custom models, analyze custom models) - working fine
  • in FOTT, setup a new project and was able to see all the images in train folder and was able to create labels
  • Attempted to train the model as the next step - ERROR: Training Failed: "Authorization was rejected by the user-provided resource"
  • Attempted to train the custom model using the API (postman) using the model ID FOTT displayed - ERROR:

"trainResult": {
"averageModelAccuracy": 0.0,
"errors": [
{
"code": "Forbidden",
"message": "Authorization was rejected by the user-provided resource."
}
]

I checked everything stated in the prereqs, enabled CORS and made sure SAS has all the rights available but I am not able to figure out what's going on.

Please help!

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,441 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,446 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,621 Reputation points
    2021-05-10T12:09:53.957+00:00

    @Shan Sudarshan Thanks for the question. Can you please add more details about the Form Recognizer resource that you have created and please share the input sample documents that you are trying. We are able to train the custom model successfully as shown below. Here are the steps to configure CORS.
    95291-image.png