/psych_review_2017

3D shape inference model for our Psych Review 2017 paper

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

This repository contains the code for the paper "Erdogan G., Jacobs R. A. (2017) Visual Shape Perception as Bayesian Inference of 3D Object-centered Shape Representations. Psychological Review".

The code here is self-contained (even though it has been copied from other repositories), and you should be able to run it without referencing any other repositories on my GitHub.

See run_bdaooss_experiment.py for a script that runs the MCMC chain to sample 3D shape hypotheses given an image.

To calculate the predictions of our model in the paper, see calculate_similarity.py script. Note you will need the samples produced by the MCMC chain to calculate similarities.