Project 3. Are the bounding boxes correct?

In this project, performers will determine if traffic signs were selected correctly on the images in project 1, and submit the responses in project 2.

  1. Create a project
  2. Create a pool
  3. Prepare and upload a TSV file with the results
  4. Download the reviewed results
  5. Check the completed tasks

Create a project

  1. Click the + Create project button.

  2. In the window that opens, find the Selecting a region in an image template and click Select.

  3. In the window that opens, fill in the project parameters:

    1. In the Project name field, enter Are the traffic signs outlined correctly?.

    2. In the Description field, enter Look at the image and decide whether the traffic signs are outlined correctly or not.

    3. In the Instructions field, enter the instruction.

      Instruction text:

      Look at the image and answer the question: Are all traffic signs outlined correctly?
      If there are, click Yes.
      If there isn's, click No.
      For example, road signs are outlined correctly, so the correct answer is Yes.
      Tip. If you want to add a task examples in the instruction, complete it yourself in the preview mode. Take screenshots, upload them to photo hosting or to your Yandex.Disk and insert image links in the instructions by clicking the button on the toolbar.
  4. Note. This tutorial shows how to create a task interface in Yandex.Toloka. You can also try creating a task interface in the Template Builder.

    Set up Specifications:

    1. Click to switch graphic mode to JSON format.

    2. Remove the template code from the Input data and Output data fields.

    3. In the Input data field, enter the following code:

      {
        "image": {
          "type": "url",
          "hidden": false,
          "required": true
        },
        "selection": {
          "type": "json",
          "hidden": false,
          "required": false
        },
        "assignment_id": {
          "type": "string",
          "hidden": true,
          "required": true
        }
      }
    4. In the Output data field, enter the following code:

      {
        "result": {
          "type": "string",
          "hidden": false,
          "required": true
        }
      }

    Learn more about Specifications in Input and output data.

  5. Prepare Task interface:

    1. Connect the $TOLOKA_ASSETS/js/image-annotation.js library (click in the Task interface block on the project page).

    2. In the html block, replace the current code with the following:

      <!-- editor for selecting areas that lets you add an area in advance -->
      {{field type="image-annotation" name="object" src=image annotations=selection}}
      
      <!-- buttons for responses -->
      {{field type="radio" name="result" value="OK" label="Correct" hotkey="1"}}
      {{field type="radio" name="result" value="BAD" label="Incorrect" hotkey="2"}}
    3. In the css block, replace the current code with the following:

      /* hide the button for polygon selection */
      .image-annotation-editor__shape-polygon {
        display: none;
      }
      
      /* adjust the interface height */
      .image-annotation-editor__annotation-layer {
        height: max-content;
      }
  6. Click the Preview button. You should see the task interface.

    To test the interface:
    1. Click Change input data.
    2. In the selection field, add an example of input data:
      [{"data":{"p1":{"x":0.472,"y":0.413},"p2":{"x":0.932,"y":0.877}},"type":"rectangle"},
      {"data":[{"x":0.143,"y":0.807},{"x":0.317,"y":0.87},{"x":0.511,"y":0.145},{"x":0.328,"y":0.096},{"x":0.096,"y":0.554}],"type":"polygon"}] 
    3. Answer the question.

    4. In the lower-right corner, click Submit.

  7. If everything is OK, close the preview tab. If not, check the data you inserted in the code blocks.

  8. On the project settings tab, click Finish editing.

If you still have questions about setting up projects, you can search for the answer in the common guidelines for Creating a project.

Create a pool

  1. Open the project page titled Are the traffic signs outlined correctly?.

  2. Click the Add a pool button.

  3. Specify the Pool name.

  4. (optional) Enter a private description.

    1. Turn on the Add a private description option.

    2. In the Private description field, enter the pool description. This information is available only to you.

  5. In the Price per task page section, the Price in US dollars field, specify the price. For example, 0.01. You can see more examples of pricing here.

  6. In the Performers section, filter performers:

    1. Click Add filter.

    2. Find the Audience presets block in the list and choose the Russian speaking users skill.

    3. Add another filter. Click Add filter.

    4. Find Skills in the list and choose Choose skill.

    5. In the Choose a skill field, choose Object selection.

    6. In the ? field specify =.

    7. Leave the Missing field blank.

  7. In the Quality control section, specify quality control settings for the pool:

    1. Click Add Quality Control Rule.

    2. Find the Rules block in the list and choose Majority vote.

    3. In the Accept as majority field, soecify 2.

    4. Set the rule: if number of responses ≥ 10 and correct responses (%) < 50, then ban the performer on project for 10 days. Specify the reason Doesn't match the majority.

      Note.

      The rule takes effect when the number of responses for the task is equal to the overlap.

    Learn more in Quality control.

  8. In the Overlap section, specify 3 in the Overlap field.

  9. (optional) In the Speed/quality ratio section, specify the percentage of top-rated users who will get access to the pool. Read more about this in Speed/quality balance.

  10. In the Parameters section:

    1. In the Time for completing a task page in seconds field, specify 600.

    2. Turn on the Keep task order option.

  11. Click Save.

Prepare and upload a TSV file with the results

Check out the example in a demo TSV file. You can find it on the pool page. At the top-left of the page, there are links to TSV files with regular, control, and training tasks.

  1. Prepare a TSV file with tasks.

    1. Leave the INPUT:image column unchanged.

    2. Change the OUTPUT:result column name to INPUT:selection.

    3. Rename the ASSIGNMENT:assignment_id column to INPUT:assignment_id.

    4. Delete the ACCEPT:verdict: and ACCEPT:comment: columns:

    5. Save the file in TSV format.

    Tip.

    You can prepare TSV file in the Notepad program. To transfer data to Microsoft Excel, use Text Import Wizard and disable the Text qualifier option.

  2. Upload the resulting TSV file to the Are the traffic signs outlined correctly? pool:

    1. Open the Are the traffic signs outlined correctly? pool.

    2. Click Upload. In the window that opens, configure the file upload settings.

    3. Choose Set manually.

    4. In the Tasks per page field, specify 10.

    5. Click Upload.

    6. In the window that opens, choose the TSV file with tasks to upload and click Open.

    7. In the window that opens, check the number of tasks and click Add.

    8. On the pool page, click Preview. Make sure that the task displays images with the selected objects.
      Tip.

      If there are no selected objects, check if the TSV file has quotation marks inserted correctly in the INPUT:selection column. Make sure that the interface parameters are set correctly.

  3. Click to start the pool.

    Attention.

    The tasks will be completed by real performers in Yandex.Toloka. Recheck your project setup before you start the pool.

Download the reviewed results

  1. Next to the Download results button, click .

  2. Choose Dawid-Skene aggregation model from the list. Read more about Result aggregation based on the Dawid-Skene model.

  3. In the window that opens, click Yes.

  4. At the top of the page, click View the list of operations.

    Note.

    To track the progress, refresh the page from time to time. Aggregation takes from 5 to 20 minutes. You can start designing another project meanwhile.

  5. When the operation is complete, download the TSV file with the results. To do this, click Download in the Files column.

  6. Use the TSV file with the results in project 2.

Check the completed tasks

Since the Non-automatic acceptance option is enabled in the pool settings for project 2, you should check the performers' responses within the time limit set in the Review period field.

You can check the results in two ways:

  • In the TSV file with the results.
  • In the pool interface.
  1. In the text or spreadsheet editor, open the TSV file that you received after aggregating the results.

    Tip. You can use the online spreadsheet editor. Go to Yandex. Disk linked to your customer account. Click Create → Spreadsheet. Copy the aggregated data from the TSV file to the table.
  2. Prepare the TSV file:

    1. Add a column named ACCEPT:verdict with the review results.

    2. Add a column named ACCEPT:comment with comments for performers if responses were rejected. For example, comment on which part of the instructions wasn't followed.

    3. Rename the INPUT:assignment_id column to ASSIGNMENT:assignment_id.

  3. Fill in the ACCEPT:verdict: and ACCEPT:comment: columns:

    • If the aggregate result of the assignment is OK, put + to accept it.
    • If the aggregate result of the assignment is incorrect or it doesn't open, put - to reject it. Enter the reason for rejecting the task in the ACCEPT:comment: field, for example, The object isn't selected or is selected incorrectly.
    Tip. You can use the awk commands to outline images on Linux and MacOS devices:
    awk 'BEGIN {FS=OFS="\t";} NR>1 {if($4~"OK"){ print $1, "+", ""; }else{ print $1, "-", "The object isn't selected or is selected incorrectly.";}}' <post_accept_res>.tsv > <review_res>.tsv
  4. Delete all the other columns.

  5. Save the file in TSV format.

  6. Open the pool page in project 2.

  7. Click Review assignments.

  8. Click Upload results.

  9. In the window that opens, choose the TSV file with the results to upload and click Open.

  10. In the window that opens, compare the number of tasks in the Processed successfully and Total submitted fields on the pool page.

  11. Click Add.

  12. In the window that opens, click Close.

  13. When setting up a pool in the second project you turned on the Recompletion of the rejected tasks option.

    In this case, the pool automatically reopens and the assignments are reassigned to other performers. When they're completed, send the results for review. Then download the results, check them, and upload the reviewed results. You can reject assignments as many times as you want to get more accurate results.