mechanicalturk - 允许在 Mturk 的人群图像分类器上选择多个类
问题描述
我正在使用 Mturk 创建一个数据集进行训练。多类图像分类器。
crowd-image-classifier 模板的文档没有显示如何执行此操作。我应该为此创建一个人群复选框吗?如何?这个问题和评论建议使用 javascript。
<script src="https://assets.crowd.aws/crowd-html-elements.js"></script>
<!-- For the full list of available Crowd HTML Elements and their input/output documentation,
please refer to https://docs.aws.amazon.com/sagemaker/latest/dg/sms-ui-template-reference.html -->
<!-- You must include crowd-form so that your task submits answers to MTurk -->
<crowd-form answer-format="flatten-objects">
<!-- The crowd-classifier element will create a tool for the Worker to select the
correct answer to your question.
Your image file URLs will be substituted for the "image_url" variable below
when you publish a batch with a CSV input file containing multiple image file URLs.
To preview the element with an example image, try setting the src attribute to
"https://s3.amazonaws.com/cv-demo-images/one-bird.jpg" -->
<crowd-image-classifier
src="${image_url}"
categories="['Cat', 'Dog', 'Bird', 'None of the Above']"
header="Choose the correct category"
name="category">
<!-- Use the short-instructions section for quick instructions that the Worker
will see while working on the task. Including some basic examples of
good and bad answers here can help get good results. You can include
any HTML here. -->
<short-instructions>
<p>Read the task carefully and inspect the image.</p>
<p>Choose the appropriate label that best suits the image.</p>
</short-instructions>
<!-- Use the full-instructions section for more detailed instructions that the
Worker can open while working on the task. Including more detailed
instructions and additional examples of good and bad answers here can
help get good results. You can include any HTML here. -->
<full-instructions header="Classification Instructions">
<p>Read the task carefully and inspect the image.</p>
<p>Choose the appropriate label that best suits the image.</p>
</full-instructions>
</crowd-image-classifier>
</crowd-form>
解决方案
我想这就是你要找的。它被称为分类器多选而不是图像分类器
这是一个模板(带有人群代码)你需要粘贴到MTurk的设计布局中,否则提供的图像分类html代码默认为single-label(single-class)
或者这里是另一种:
推荐阅读
- javascript - 为什么回调地狱有效而 async/await 无效?(在我正在测试的这种特殊情况下)
- typescript - 如何从同一个 Typescript 文件中导入和导出一个类?
- rest - Chrome 将 INR 转换为 USD
- database - 由于密码错误,mySql Workbench 未启动
- json - 在 ReactJS 中显示嵌套的 Json 数据
- vue.js - Nuxt 开发服务器中间件`nuxt dev`
- ruby-on-rails - Sidekiq/Redis/Rails - 发送在分支上工作,但现在不会在开发中交付
- c# - 如何在 C# 中将父级转换为子级
- python - Discord Python Webhook Bot 不断发送额外的响应消息
- python - 如何在 Pandas 数据框的一列中计算一维数组中的值的数量