Problem #73
Author:IOAI 2025
Difficulty
Your best score
N/A
This task focuses on training a model to learn the relationship between male and female restroom pictograms from the same restroom. Based on labeled training data, you need to train a matching model that, given a query image, finds its different-gender counterpart (for example, matching a male pictogram from the cropped image with the female counterpart from the original image), with the constraint that both pictograms come from the same restroom.
For example, for a query image (i.e., a male pictogram in the cropped image) shown below in Fig. 1, its corresponding counterpart is shown in Fig. 2 (i.e., a female pictogram in the original image, which is from the same restroom).
| Figure 1 | Figure 2 |
|---|---|
![]() | ![]() |
This dataset can be used for training the model. Directory structure:
train/ ├── crop/ # Cropped pictograms │ ├── female/ 1.png, 2.png, ... │ └── male/ └── orig/ # Original pictograms ├── female/ └── male/Each subfolder contains pictograms named from 1.png to 82.png, where the number indicates the restroom ID. For each restroom, there are four images (note that four images from the same restroom will have the same unique ID across all four subfolders):
crop/female/i.png → Cropped female pictogramcrop/male/i.png → Cropped male pictogramorig/female/i.png → Original female pictogramorig/male/i.png → Original male pictogramThe validation set (validation_set) and test set (test_set) contain two subfolders with the following structure:
validation_set/├── query/ # Cropped pictograms to be matched └── gallery/ # Candidate original pictogramstest_set/ ├── query/ # Cropped pictograms to be matched └── gallery/ # Candidate original pictogramswhere
query/ - cropped pictograms that need to be matched;gallery/ - set of original pictograms to match from;.png format.query/ folder, and the test set has 30 images in its query/ folder.Notes:
query/ and gallery/ are numbered and shuffled independently, meaning matching cannot be based on IDs.query/ there are exactly two originals in gallery/ (one male, one female from the same restroom), meaning len(gallery)=2*len(query).For each image in the query/ folder, predict the image from gallery/ that:
This matching should be performed using the trained model.
You need to generate a submission.csv file containing the following:
image_path, labeldataset/validation_set/query/1.png, 7dataset/test_set/query/1.png, 2...where:
image_path is the path to the image from query/ for which the prediction is made (taken from test.csv)label is the number contained in the title of the image from gallery/ that matches with the one from query.The evaluation metric will be classification accuracy, defined as the proportion of correctly predicted samples out of the total number of evaluated samples.
The final score is calculated based on the accuracy obtained using the following rules: