Here is our repository for ShapeComp, an image-computable model that is highly predictive of human shape similarity. The repository includes several MATLAB demos that show how to evaluate shapes on ShapeComp and arrange them in terms of similarity. One can also use the repository to create novel shapes, using a GAN trained on >25,000 animal shapes.
Create novel GAN silhouettes, and compute their shape similarity
Evaluate perceptual shape similarity on your custom shape set
Create novel shape sets (or object classes) controlled for perceptual shape similarity
Updates: Includes demo 3 for automatically generating perceptual uniform shape sets.
MATLAB
Deep Learning Toolbox Converter for TensforFlow Models
MATLAB
We have three demos.
Create novel GAN shapes and then use ShapeComp to arrange them based on their predicted shape similarity.
Evaluate ShapeComp to predict shape similarity on pre-determined shape sets (e.g., shapes from your own experiment). In the example above, we arrange shapes from the Validated Circular Shape Data Set. In other examples, we show how to trace contours from natural images to generate a silhouette that can be fed into ShapeComp.
Do you need careful control of shape for your experiments? Demo 3 shows you how to use ShapeComp to create perceptual uniform shape spaces
If you use this code, please cite the following:
Morgenstern, Y., Hartmann, F., Schmidt, F., Tiedemann, H., Prokott, E., Maiello, G., & Fleming, R. W. (2021). An image-computable model of human visual shape similarity. PLoS Computational Biology.
Carbajal Chavez, A.B., Van Geert, E., Wagemans, J., & Morgenstern, Y.. (2025, Preprint). Automated Generation of Perceptually-Uniform Circular Spaces for Novel Naturalistic Shapes. PsyArXiv
For related work, please visit the sites of Roland Fleming, Filipp Schmidt, and/or Yaniv Morgenstern
For questions or suggestions, please contact Yaniv Morgenstern (Yaniv.Morgenstern@gmail.com).