A novel approach of devising visual search by introducing a set of computation models in the ACT-R architecture. These models incorporate EMMA (Salvucci, 2001) in the search strategy and generate the fixation durations along with scanpath.
Generate Scanpaths for the following datasets with the help of ACT-R's visual search module
- SALICON: Derive encoding time for all objects present in a natural scene image based on YOLO v3 categories.
- COCO-Search-18: Derive encoding time for target search object based on 18 categories.
- Download the SALICON (LSUN) and Coco-Search-18 datasets, create a new directory 'data' and put them inside.
+-- data
| +-- coco_search_18
| +-- ...json
| +--detected
| +--images
| +--simulations
| +-- salicon
| +--detected
| +--images
| +--simulations
+-- compare.py
+-- concat.py
+-- main.py
+-- multiactrsim.py
+-- yolov3.weights
- Download the yolov3 pre-trained weights from https://pjreddie.com/media/files/yolov3.weights
- Refer to
start.ps1
script for windows andstart.sh
script for linux systems
-
Object Recognition
- run
main.py
, for object recognition. It uses yolov3 withprobability threshold: 0.6
. For usage, refer tostart.sh
orstart.ps1
- check the output CSVs based on split under
data\[dataset]\detected
. concat.py
, for concatenating all the files into a single CSV file containing image names and list of objects.
- run
-
ACT-R simulation
multiactrsim.py
- For usages, refer tostart.sh
orstart.ps1
. It generate the output (CSVs) indata\[dataset]\simulations
.
-
Evaluation
compare.py
- For usages, refer tostart.sh
orstart.ps1
. Refer/Edit the code in case of any making any specific comparisionsvisual_search.ipynb
- Jupyter notebook for visualizing the results and other comparison operations.
-
MultiMatch: used in
compare.py
. For reference, see https://multimatch.readthedocs.io/en/latest/ -
ScanMatch: The matlab script for scanmatch can be found in
results\matsrc.mat
. For reference, see https://seis.bristol.ac.uk/~psidg/ScanMatch/#Tutorial-
To run for SALICON, open the
matsrc.mat
in matlab, go inside the salicon folder.results\salicon
and pressrun
. -
To run for COCO-SEARCH-18, open the
matsrc.mat
in matlab, go inside the coco-search-18 folder.results\coco-search-18
and pressrun
.
-
Set the parameters for evaluation in the matsrc.mat
using the command ScanMatchInfo = ScanMatch_Struct();
For reference, see https://seis.bristol.ac.uk/~psidg/ScanMatch/#Tutorial