IBM Watson视觉识别{“代码":400,“错误":“无法执行学习任务. :未指定分类器名称"“} [英] IBM Watson Visual recognition{"code":400,"error":"Cannot execute learning task. : no classifier name given"}

查看:104
本文介绍了IBM Watson视觉识别{“代码":400,“错误":“无法执行学习任务. :未指定分类器名称"“}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Watson Visual Recognition中用两个肯定的类和API密钥(每个类包含大约1200张图像)训练一个分类器时,它返回没有给出分类器名称"-但是我已经提供了.这是代码:

When I try to train a classifier with two positive classes and with the API key (each class contains around 1200 images) in Watson Visual Recognition, it returns that "no classifier name is given" - but that I have already provided. This is the code:

     $ curl -X POST -F "blank_positive_examples=@C:\Users\rahansen\Desktop\Altmuligt\training\no_ocd\no_ocd.zip" -F "OCD_positive_examples=@C:\Users\rahansen\Desktop\Altmuligt\training\ocd\ocd.zip" -F "name=disease" "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers?api_key={X}&version=2016-05-20"

     {"code":400,"error":"Cannot execute learning task.  : no classifier name given"}

到目前为止我所做的:

  1. 删除文件名中的所有特殊字符,因为我认为这可能是问题所在:
  2. 试图给classifeir取其他名称,例如"name = ocd"
  3. 我还尝试将其训练在较小的数据集上,例如每个正类中有40张图像,然后它实际上可以正常工作.因此,也许数据集的大小是个问题.但是,根据Watson培训准则,我遵守尺寸规定: https://www.ibm.com/watson/developercloud/doc/visual-recognition/customizing.html 我有免费订阅.
  1. Removed all special characters in the file names as I thought that might be the problem:
  2. Tried to give other names for the classifeir, e.g. "name=ocd"
  3. I also tried to train it on a smaller dataset, like 40 images in each positive class and then it actually works fine. So maybe the size of the dataset is the problem. However, according to Watson training guidelines, I comply with the size regulations: https://www.ibm.com/watson/developercloud/doc/visual-recognition/customizing.html I have a free subscription.

有人对如何解决此分类器训练问题有任何建议吗?

Do anyone has any recommendations for how to solve this classifier training problem?

推荐答案

在处理zip文件时遇到问题,可能会发生这种情况.我会尝试简化您的训练文件.例如,仅使用100个示例作为类,然后可以通过稍后的重新培训来添加更多示例.培训然后衡量绩效,然后添加更多培训样本总是很好的.

This can occur when there's a problem processing the zip files. I would try simplifying your training files. For instance, use just 100 examples for class, then you can add more via retraining later. It's always good to train then measure performance and then add more training samples.

这篇关于IBM Watson视觉识别{“代码":400,“错误":“无法执行学习任务. :未指定分类器名称"“}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆