Skip to content

Latest commit

 

History

History
104 lines (79 loc) · 6.3 KB

prep_acr.md

File metadata and controls

104 lines (79 loc) · 6.3 KB

Home > Preparation > Preparation for Absolute Category Rating (ACR) and ACR-HR

Preparation of DCR test

The following steps should be performed to prepare the ACR and ACR-HR test setup. For all the resource files (steps 1-4) an example is provided in sample_inputs directory using the MCL-JCV Dataset.

Note: make sure to first perform steps listed in the general preparation process.

Note: Processed Video Sequence (PVS) should be prepared with an encoding that is supported by major web-browsers. For list of supported encoding check here and you may use FFmpeg for encoding.

  1. Upload your PVS clips in a cloud server and make them publicly available. Use The URLs to create the rating_clips.csv file with a column pvs. Each row contains a URL of a PVS. (see rating_clips_acr.csv as an example).

    NOTE: Make sure that CORS are enabled in your server: Access-Control-Allow-Origin: *.
    NOTE: It is strongly recommended to setup a Content Delivery Network (CDN) to speed up video loading time for your participants. Same applies to all other video materials in the following.

    Note about file names/urls:

    • Later in the analyzes, clip's file name will be used as a unique key and appears in the results.
    • In case you have 'conditions' which are represented with more than one clip, you may consider to use the condition's name in the clip's file name e.g. xxx_c01_xxxx.mp4. When you provide the corresponding pattern, the analyzes script will create aggregated results over conditions as well.

    NOTE for ACR-HR method:

    • Upload your source video clips also in a cloud server and make them publicly available.
    • Add a second column src to your rating_clips.csv. For each PVS the URL to its source video should be added in column src.
    • See rating_clips_dcr.csv as an example.
  2. Upload your training clips in a cloud server and create the training_clips.csv file which contains all URLs in a column name training_pvs (see training_clips_acr.csv as an example).

    Hint: Training clips are used for anchoring participants perception, and should represent the entire dataset. They should approximately cover the range from worst to best quality to be expected in the test. It may contain about 5 clips.

  3. Upload your gold standard clips in a cloud server and create gold_clips.csv file which contains following columns:

    • gold_clips_pvs: URL to the processed video clip
    • gold_clips_ans: the correct answer, expected from worker. Note to adjust the number based on the scale you are going to use (e.g. by 9-point-discrete scale, if the PVS has an excellent quality, the correct answer will be 9, whereas by 5-point_discrete scale, it will be 5).

    see gold_clips.csv as an example).

    Hint: Gold standard clips are used as a hidden quality control item in each session. It is expected that their answers are so obvious for all participants that they all give the gold_clips_ans rating (+/- 1 deviation is accepted). For this purpose, it is recommended to use clips with excellent (answer 5) or very bad (answer 1) quality.

  4. Create trapping stimuli set for your dataset.

    1. Make a copy of sample configuration file src\configurations\trappings.cfg and adapt it. See configuration of create_trapping_clips script for more information.

    2. Create a tp_src directory and add some clips from your dataset to it. Select clips in a way that

      1. Covers fair distributions of clips
      2. Covers entire range of quality (some good, fair and bad ones)
    3. Run create_trapping_clips.py

    cd src\trapping_clips
    pip install -r requirements.txt
    python create_trapping_clips.py ^
        --source tp_src ^
        --des tp_out ^
        --cfg your_config_file.cfg
    1. Trapping clips are stored in tp_out directory. List of clips and their correct answer can be found in tp_out\output_report.csv.
  5. Upload your trapping clips in a cloud server and create trapping_clips.csv file which contains all URLs in a column named trapping_pvs, and expected answer to each clip in a column named trapping_ans (see trapping_clips.csv as an example).

  6. Create your custom project by running the master script:

    1. Make a copy of sample configuration file src\configurations\master.cfg and adapt it. See master script configuration for more information.

    2. Run master script with all above-mentioned resources as input (following example is for ccr)

      cd src
      python master_script.py ^
          --project YOUR_PROJECT_NAME ^
          --method acr ^
          --cfg your_configuration_file.cfg ^
          --clips rating_clips.csv ^
          --training_clips training_clips.csv ^
          --gold_clips gold_clips.csv ^
          --trapping_clips trapping_clips.csv              

      Note: file paths are expected to be relative to the current working directory.

      Note: for ACR-HR method, please use --method acr-hr

    3. Double check the outcome of the script. A folder should be created with YOUR_PROJECT_NAME in current working directory which contains:

    • YOUR_PROJECT_NAME_acr.html: Customized HIT app to be used in Amazon Mechanical Turk (AMT).
    • YOUR_PROJECT_NAME_publish_batch.csv: List of dynamic content to be used during publishing batch in AMT.
    • YOUR_PROJECT_NAME_dcr_result_parser.cfg: Customized configuration file to be used by result_parser.py script

Now, you are ready for Running the Crowdsourcing Test.