【问题标题】:IBM Watson Visual Recognition Error: Nameless classifier ID not workingIBM Watson Visual Recognition 错误:无名分类器 ID 不起作用
【发布时间】:2017-06-26 05:39:57
【问题描述】:

我正在尝试使用来自 python Watson 开发人员云服务的 VisualRecognitionV3 class 通过 Python 2.7 在 Jupyter Notebooks 上创建自定义图像分类器。我创建了一个Watson 类来实现create_classifier()、get_classifier()、delete_classifier() 和classify() 函数。我之前有一个 api 密钥,但现在运行之前的函数后出现以下错误:

运行 get_classifier(classifier_id = ''):

输出: {u'classifiers': []}

运行 create_classifier():

输出:

WatsonException: Error: Cannot execute learning task.  : this plan instance can have only 1 custom classifier(s), and 1 already exist., Code: 400

运行 delete_classifier(classifier_id = ''):

输出:

WatsonException: Unknown error

运行分类(classifier_id = '')

输出:

{
  "images": [
    {
      "image": filepath, 
      "classifiers": [
        {
          "classes": [
            {
              "score": 0.738, 
              "class": "open-end wrench", 
              "type_hierarchy": "/tool/open-end wrench"
            }, 
            {
              "score": 0.785, 
              "class": "wrench"
            }, 
            ...
            {
              "score": 0.644, 
              "class": "dark red color"
            }
          ], 
          "classifier_id": "default", 
          "name": "default"
        }
      ]
    }
  ], 
  "custom_classes": 0, 
  "images_processed": 1
}

我本来应该上两节课,但我的课是零课。我尝试通过 30 天试用期使用另一个 API 密钥,但我收到错误 403:无效的 API 密钥。有谁知道如何在没有分类器ID的情况下消除当前类并生成一个新类,或者使用旧类生成一个工作类?任何想法将不胜感激。谢谢!

【问题讨论】:

    标签: python python-2.7 jupyter-notebook ibm-watson visual-recognition


    【解决方案1】:

    这几乎可以肯定是系统中的一个“小问题”,您之前创建和删除的自定义分类器没有被完全清除,因此系统将不允许您创建另一个自定义分类器,而它仍然认为您有一个现有的分类器.我假设您的 API 密钥是免费的?

    如果您创建包含 API 密钥的 Bluemix 支持票证,我们可以重置状态,以便您继续培训。如果您有,请同时包含您之前拥有的自定义分类器的“所有者”id 字段和“classifier_id”。

    感谢您尝试 Visual Recognition 自定义分类,对于由此带来的不便,我们深表歉意。

    【讨论】:

    • 感谢您的回复!我将使用 API 密钥提交一份 Bluemix 支持票证。是的,它是一个免费的 API 密钥。它是由我公司的帐户提供的,但现在我从我的个人 Bluemix 帐户获得了一个免费的 API 密钥,并且它可以工作。将与前者进行故障排除以解决问题。
    猜你喜欢
    • 2018-06-09
    • 2020-09-23
    • 2017-05-22
    • 1970-01-01
    • 1970-01-01
    • 2017-05-23
    • 1970-01-01
    • 2017-03-23
    • 2023-03-25
    相关资源
    最近更新 更多