Tools

Check out 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.

The following code shows how to create shape variants by manipulating a shape's skeletal representation. The skeletal representation decomposes the shape into parts. Here we vary the relationship of the lengths, orientations, widths, and positions of all these parts to create new shape variants.

Such new variants may be useful in producing stimuli for a variety of psychophysical tasks. As an example, the code can be used to create classes of objects with similar/dissimilar statistics (e.g., by choosing the distribution of parameters of how these parts are sampled)