The simple app of pairwise comparison for image data.
Clone this repository.
$ git clone https://github.com/ktrk115/paircomp
$ cd paircomp/examples/paircomp
Create a virtualenv and activate it.
$ python3 -m venv venv
$ . venv/bin/activate
Install PairComp.
$ pip install -e .
- Initialize database and register tasks.
$ export FLASK_APP=paircomp
$ flask init-db
$ flask register-task example_task.csv
- Run server.
$ flask run
-
Open http://127.0.0.1:5000 in a browser and do tasks.
-
Summarize the voting result.
# generate summary.csv
# column: img_0, # votes for img_0, img_1, # votes for img_1
$ flask get-summary