简体   繁体   English

表单识别器“缺少训练数据:在给定路径找不到任何训练数据。”

[英]Form Recognizer "Training data is missing: Could not find any training data at the given path."

I am using new form recognizer studio ( https://formrecognizer.appliedai.azure.com/studio/customform/projects ) to label files using SDK Version="4.0.0-beta.2". I am using new form recognizer studio ( https://formrecognizer.appliedai.azure.com/studio/customform/projects ) to label files using SDK Version="4.0.0-beta.2". Code to train model as below:训练 model 的代码如下:

                var buildModelOptions = new BuildModelOptions
                {
                    Prefix = docType.SubFolderName,
                    ModelDescription = trainedModel.ModelDescription
                };
                BuildModelOperation operation = await _trainingClient
                    .StartBuildModelAsync(new Uri(_trainingDataSASUrl), trainedModel.ModelName, buildModelOptions);
                Response<DocumentModel> operationResponse = await operation.WaitForCompletionAsync();
                DocumentModel model = operationResponse.Value;

Keep getting error like below on method StartBuildModelAsync():在方法 StartBuildModelAsync() 上不断收到如下错误:

Invalid request.
Status: 400 (Bad Request)
ErrorCode: InvalidRequest

Content:
{
  "error": {
    "code": "InvalidRequest",
    "message": "Invalid request.",
    "innererror": {
      "code": "TrainingContentMissing",
      "message": "Training data is missing: Could not find any training data at the given path."
    }
  }
}

In BuildModelOptions.Prefix, I am passing value as "cfs/Lease1015", which is path from blob container, blob containers SAS url is in "_trainingDataSASUrl".在 BuildModelOptions.Prefix 中,我将值作为“cfs/Lease1015”传递,这是来自 blob 容器的路径,blob 容器 SAS url 在“_trainingDataSASUrl”中。 In blob training files exist under "cfs/Lease1015" and prefix is specified in correct casing.在“cfs/Lease1015”下存在 blob 训练文件,并且前缀以正确的大小写指定。

Please look at github bug reported here https://github.com/Azure/azure-sdk-for-net/issues/26081 for more information.请查看此处报告的 github 错误https://github.com/Azure/azure-sdk-for-net/issues/26081了解更多信息。

It worked after adding '/' to prefix attribute.将“/”添加到前缀属性后,它起作用了。

var buildModelOptions = new BuildModelOptions
{
    Prefix = docType.SubFolderName + '/', // append a slash to the subfolder name
    ModelDescription = trainedModel.ModelDescription
};

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MS 表单识别器 - 训练后无法找到我的模型。 我错过了任何一步吗? - MS Form Recognizer - Unable to find my model after training. Did I miss any step? 如何识别 Azure 训练 model 与 Azure 表单识别器服务一起使用。 可以在同一个 model 中训练多个布局吗? - How to identify which Azure training model to use with Azure form recognizer service. Can multiple layouts be trained in the same model? Azure 表单识别器 - 标签变量类型数据 - 接收列表中的数据 - Azure Form Recognizer - Label variable type data - recieve data in list 表单识别器 Anzalyze:数据加载错误 - 415 - Form Recognizer Anzalyze: Data loading error - 415 使用 azure Form Recognizer api v2.1 通过 REST 训练模型时给出自定义模型名称 - Giving a custom model name when training a model via REST with azure Form Recognizer api v2.1 为什么 Form Recognizer SDK v3 找不到任何 OCR 文档进行训练? - Why can't Form Recognizer SDK v3 find any OCR documents to train? 如何在 TrainCustomModelAsync 表单识别器上定位本地路径 - How to target Local Path on TrainCustomModelAsync Form Recognizer 创建表单识别器缺少字段 - Creation Form Recognizer Missing Fields 从 Azure 表单识别器中的自定义标记动态表中提取数据 - Extracting data from custom labelled dynamic tables in Azure Form Recognizer 表单识别器(带有标签的自定义 model)未获取正确的数据 - Form recognizer(custom model with labels) is not fetching proper data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM