【问题标题】:Azure Custom Speech Model: Use existing model as a base modelAzure 自定义语音模型:使用现有模型作为基础模型
【发布时间】:2021-11-06 06:06:50
【问题描述】:

我根据我的数据集创建了模型。如果我想将更多数据集附加到现有数据集,我可以将此模型用作创建另一个模型的基础模型吗?

当我尝试这样做时,我收到 http 400,并显示消息:“基本模型对此操作无效”

【问题讨论】:

  • 您是否使用 azure ui 创建了自定义语言模型?
  • 我用过rest api

标签: azure speech-to-text azure-cognitive-services


【解决方案1】:

您无需将自定义模型设为基本模型。自定义模型是在基本模型上创建的。您只需找到自定义模型的 endpointId,然后使用 sdk 或使用其余 api 对该模型执行您的请求。

以下是示例自定义端点响应的外观。
以“f203”结尾的id为自定义模型endpointId,以“ddcd”结尾的id为基础模型endpointId。

{
      "self": "https://westcentralus.api.cognitive.microsoft.com/speechtotext/v3.0/models/****1e6c-****-****-****-c25f****f203",
      "baseModel": {
        "self": "https://westcentralus.api.cognitive.microsoft.com/speechtotext/v3.0/models/base/****f802-****-****-****-8f1b****ddcd"
      },
      "datasets": [],
      "links": {
        "manifest": "https://westcentralus.api.cognitive.microsoft.com/speechtotext/v3.0/models/****1e6c-****-****-****-c25f****f203/manifest",
        "copyTo": "https://westcentralus.api.cognitive.microsoft.com/speechtotext/v3.0/models/****1e6c-****-****-****-c25f****f203/copyto"
      },
      "properties": {
        "deprecationDates": {
          "adaptationDateTime": "2021-10-15T00:00:00Z",
          "transcriptionDateTime": "2022-10-15T00:00:00Z"
        }
      },
      "lastActionDateTime": "2020-08-27T07:20:50Z",
      "status": "Succeeded",
      "createdDateTime": "2020-08-27T07:18:36Z",
      "locale": "en-NZ",
      "displayName": "Iteration 1",
      "description": "Baseline Model with Random Splitting of Dataset",
      "customProperties": {
        "PortalAPIVersion": "3"
      }
    }

请查看下面的链接并尝试使用 api。

Speech to Text API v3.0 REST Console

【讨论】:

  • 我已经使用这些 api 来创建数据集、模型和端点。就我而言,我已经训练了包含 2 小时音频的模型。现在我想向这个模型添加 10 分钟的另一个数据集。有没有办法不重新训练现在总共 2 小时 10 分钟的整个模型,而只训练 10 分钟的音频,并将其添加到现有模型中?
  • 我不确定 Azure 的自定义模型培训中是否可用。据我所知,您需要创建一个包含 2 小时 10 分钟音频样本的新数据集,并再次重新训练基本模型。至少我们是这样做的。
猜你喜欢
  • 1970-01-01
  • 2022-08-15
  • 2015-10-17
  • 2012-02-04
  • 2013-10-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多