Materials to reproduce Wallis, Funke et al. "Image content is more important than Bouma's Law for scene metamers"
2018-10-30

# Materials to reproduce Wallis, Funke et al. &amp;quot;Image content is more important than Bouma&amp;#39;s Law for scene metamers&amp;quot;\\n\\n\\nThis repository contains the code and data used to produce the manuscript:\\n\\n\\nWallis, T. S. A., Funke, C. M., Ecker, A. S., Gatys, L. A., Wichmann, F. A., &amp;amp; Bethge, M. (2018). Image content is more important than Boumas Law for scene metamers. *BioRxiv*. https://doi.org/10.1101/378521\\n\\n\\n\\n## Experiment number labelling\\n\\n\\nThe numeric labelling of experiments corresponds to chronological order in the life of this project, including pilot experiments, not to the experiments finally reported in the paper. We have kept the labelling as-is here to make the code as close to original as possible. A brief description of all experiments can be found in `experiment_overview.txt`.\\n\\n\\n- Experiment 16 is the main experiment reported in the paper (Figure 1) assessing the FS-model and CNN-model under an oddity design.\\n- Experiment 17 is the wedge artifact control experiment (Figure S4).\\n- Experiment 19 is the ABX replication (Figure S5).\\n- Experiment 7 is the multiscale experiment (Figure S7).\\n- Experiment 5 is the CNN model experiment using unique images (Figure S8).\\n- Experiment 6 is the CNN model experiment with repeated images (Figure S9).\\n- Experiment 13 is the pre-registered spatial cueing experiment (Figure S10).\\n- Experiment 20 is the 2IFC local texture distortion experiment (Figure S13).\\n\\n\\n\\n## Directories and explanation\\n\\n\\n### `/code`\\n\\n\\n`/experiment/` contains matlab / PTB code and parameters specified as `yaml` files to run the experiments reported in the paper.\\n\\n\\n`/stimuli` contains code used to generate stimuli. Some of this will be specific to our cluster setup and will need re-writing to be generally useable. FS-model requires MATLAB and installation of the [model repository](http://github.com/freeman-lab/metamers) and associated toolboxes. The CNN-model is found in the ipython notebook `DNN-foveated-model.ipynb`.\\n\\n\\n`/analysis` contains code to analyse psychophysical data, including fitting Bayesian models in `brms`.\\n\\n\\n### `/figures`\\n\\n\\nFigure files used in the manuscript (as .pdf) are included here. They were assembled in Inkscape.\\n\\n\\n### `/publications`\\n\\n\\n&amp;nbsp;\\n\\n\\n### `/raw_data`\\n\\n\\nContains raw psychophysical data output by each experiment. Raw eyetracking data files are not included for storage reasons and are available upon request.\\n\\n\\n### `/results`\\n\\n\\nThese include the outputs of data munging (collating the separate raw data files into one file for analysis) and the saved R binaries of the fit Stan / brms models (these can be quite large).\\n\\n\\n### `/stimuli`\\n\\n\\nThe stimuli used in our experiments are provided here. **Note!** The original images fall under a different license &amp;ndash; they are part of the MIT1003 dataset. They are provided here to facilitate reproducibility.\\n\\n\\nJudd, T., Durand, F., &amp;amp; Torralba, A. (2012). A benchmark of computational models of saliency to predict human fixations. CSAIL Technical Reports. Retrieved from http://dspace.mit.edu/handle/1721.1/68590\\n\\n\\nJudd, T., Ehinger, K. A., Durand, F., &amp;amp; Torralba, A. (2009). Learning to predict where humans look. In IEEE 12th International Conference on Computer Vision (pp. 2106&amp;ndash;2113). Kyoto. https://doi.org/10.1109/ICCV.2009.5459462\\n\\n\\n\\nPlease contact Tom Wallis (thomas punkt wallis atsymbol uni-tuebingen punkt de) if any required files are missing.\\n\\n\\n### License\\n\\n\\nMaterials and code are shared here under a CC-BY license to facilitate re-use and reproducibility. **Any material belonging to a different repository remains under the license of that repository**, and is reproduced here purely for ease of use.