【问题标题】:Allow for multiple classes to be selected on Mturk's crowd-image-classifier允许在 Mturk 的人群图像分类器上选择多个类
【发布时间】:2019-11-28 14:32:52
【问题描述】:

我正在使用 Mturk 创建一个数据集进行训练。多类图像分类器。

crowd-image-classifier template 的文档没有说明如何执行此操作。我应该为此创建一个crowd-checkbox 吗?如何? This question and comment 建议使用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


    【解决方案1】:

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

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

    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

    【讨论】:

    • 这个模板需要粘贴到MTurk的设计布局中,否则提供的图片分类html代码默认为single-label(single-class)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-05
    • 1970-01-01
    • 1970-01-01
    • 2021-12-07
    • 2018-04-09
    • 1970-01-01
    相关资源
    最近更新 更多