Compare pictures side by side

  1. Before you start
  2. Creating a project
  3. Adding a task pool
  4. Uploading tasks
  5. Starting a pool and getting results
Tip.

Run the project in the Sandbox first. This helps you avoid making mistakes and spending money on a task that isn't working right.

This project template it is suitable for those cases when you need to compare similar or different images, illustrations, and interfaces in pairs (side-by-side, SbS).

This template helps solve such tasks as:

  • You need to understand which interface design users like best.
  • Testing different images in targeted ads.
  • Choose the best images for publications, illustrations, or desktop backgrounds.

Let's say you have several photos with cats and you want to figure out which one will be nicer in the ad for the user. To do this, create a task: the performer will see two options and will have to choose one of them.

Example of a prepared task

Before you start

To use your images in the project, you will need to upload them to a storage from which you can get file links. For example, your server, photo hosting, or cloud storage:

If you have a complex project, register in the sandbox and create a project there. There you can:

  1. Test the project settings as a performer.
  2. Then transfer them to the production version.
  3. Launch the project for real performers.

This helps you avoid making mistakes and spending unnecessary money on a task that doesn't work.

Creating a project

In the project, you define what the task will look like for the performer.

  1. Click + Create a project and choose the Side-by-side image comparison template. It is located in the Side-by-side comparison under the Classification block.

  2. Enter a clear name and write a short description for the project. Performers will see this in the task list.

  3. Write short and clear guidelines (see the recommendations).
  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.
    Define which objects you are going to pass to the performers and which one you want to receive from them in response. To do this, add input and output fields in the Specifications block.
    What are input and output data?

    Input — Types of objects the performer receives for the task completion. In this template, you need images. In other tasks, it can be text or geographical coordinates.

    Output data is types of objects that you receive after the task is completed. There will be one of two response options for this template. In others, it may be entered text or an uploaded file.

    Learn more about input and output data fields.

    In this case they are:

    • Input data — The image_left and image_right to specify the image links.
    • Output data: the result string with a radio button response.
  5. Create the task interface in the HTML block. It describes how the task elements should be arranged in the task.

    You can use standard HTML tags and special expressions in double curly brackets for input and output data fields.

    
    {{img src=image_left width="100%" real-size=true}}
    {{img src=image_right width="100%" real-size=true}}
    
    {{field type="radio" name="result" label="Левый" value="LFT" hotkey="1"}}
    {{field type="radio" name="result" label="Правый" value="RGHT" hotkey="2"}}
    {{field type="radio" name="result" label="Они одинаковые" value="404" hotkey="3"}}
    
    This notation describes the following task design:
    • Two images by the image_left and image_right link.
    • Three radio buttons, and the chosen option is output to the result field.
  6. Most people view images from left to right, so the first image can affect the perception of the second. If you shuffle images in tasks, the reliability of the survey results increases. Images in pairs will be displayed each time in a new order for different performers.

    How do I make a task if I need to mix images?

    If you need to compare:

    Only two images.
    • You can shuffle the images manually when you create TSV file with links. Make two tasks with different image order. In the TSV file (using Excel, for example), add another line with two links that will be placed differently from the first line. One line is one page with one task for the performer. This will be the case after you apply the settings, described above.

    • In the next step Adding a task pool, you need to configure quality control rule Submitted responses so that one performer gets only one task.

      Add a block and set the following parameters:

      This means that after the performer completes one task, they aren't offered the next one. The response will be accepted and the task completed.

    Many images.

    You can display them in random order in the interface. You need to edit the specification as well as the HTML and JS blocks. We recommend creating a test project following the instruction in the Which of the found items is more similar to the initial one? section.

  7. Click the Preview button to see the performer's view of the task.

    The project preview window shows a single task with standard data. You can define the number of tasks to show on the page later.

  8. Save the project.

Adding a task pool

A pool is a set of paid tasks sent out for completion at the same time.

  1. Open the project and click Add pool.
  2. Give the pool any convenient name and description. The pool info is only available to you. Performers can view only the project name and description.
  3. Set the price per task page (for instance, $0.01).
    What is a task page?

    A page can contain one or several tasks. If the tasks are simple, you can add 10-20 tasks per page. Don't make pages too long because it slows down loading speed for performers.

    Performers get paid for completing the whole page.

    The number of tasks on the page is set when uploading tasks.

    What is the fair price for a task page?

    The general rule of pricing is the more time the performer spends to complete the task, the higher the price is.

    You can register in Yandex.Toloka as a performer and find out how much other requesters pay for tasks, or see examples of cost for different types of tasks.

  4. Add Filters to select performers. To make your task available only to English-speaking users, set filters by language and country detected by the phone number.
  5. Set up Quality control. Quality control rules allow you to filter out inattentive performers. You can also set up quality control in the project.

    • Typical quality control setting for such tasks is Fast responses. Add a block and specify the following values:

      This means that a performer who completes a task page in less than 5 seconds will be blocked for ten days and won't be able to complete your tasks.

  6. Set Overlap, which is the number of performers to complete the same task. For image comparison tasks, 20.
  7. In the Speed/quality ratio block, you can leave the settings unchanged. For the image comparison, the performer's rating isn't too important.
  8. Set the Time allowed for completing a task page. It should be long enough to read the guidelines and wait for task data to download (for example, 600 seconds).
  9. Save the pool.

Uploading tasks

Prepare your own task file. 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. Click Upload. In the window that opens, you can also download a sample TSV file by clicking Sample file for uploading tasks.
    What is TSV?
    A TSV file presents a table as a text file in which columns are separated by tabs.
    You can work with it in a table editor or in a text editor, and then save it to the desired format. Learn more about working with a TSV file. There is a CSV format that is similar to TSV, but you should use a TSV file for uploading.
    Note. The file must be saved in UTF-8 encoding.
  2. Add input data in it. The input data column headings that contain the word INPUT. Leave the other columns empty.
  3. Load the tasks by choosing Specify manually. Set the value to 1.
    What does "Set manually" mean?
    Set manually is a setting for forming task pages. It means that a page will contain the number of tasks that you specify in this setting.

Starting a pool and getting results

  1. Start the pool by clicking .
  2. Track the completion of tasks in the Pool statistics section.
  3. When the pool is completed, launch aggregation of results. To do this, find the Download results button and click  → Dawid-Skene aggregation model next to it.

    In this case, the TSV file with aggregated responses contains the response significance as a percentage — the CONFIDENCE field. The results show how much we can trust the response that the right (or left) picture is better. Learn more about aggregation.

  4. Track the aggregation progress on the Operations page. When the process is completed, click Download.