首页 > 解决方案 > 允许在 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>

标签: mechanicalturk

解决方案


我想这就是你要找的。它被称为分类器多选而不是图像分类器

这是一个模板(带有人群代码)你需要粘贴到MTurk的设计布局中,否则提供的图像分类html代码默认为single-label(single-class)

https://github.com/awsdocs/amazon-sagemaker-developer-guide/blob/master/doc_source/sms-ui-template-crowd-classifier-multi-select.md

或者这里是另一种:

https://github.com/aws-samples/amazon-sagemaker-ground-truth-task-uis/blob/master/images/image-classification-multiselect.liquid.html


推荐阅读