Classification File Format

Classification files are provided in the classification folder. Each classification file lists classes and models within each class. The classification contains a subset of the models in the database. There are a variety of ways to group the models, and we have provided a few useful views on the model database.

The Princeton Shape Benchmark Classification Format

PSB Version_Num
numClasses numModels

className parentClassName numModelsInClass
one model identifier per line.

This is the basic description for the classification format for version 1. Future classification formats will have a higher version number.

There can be arbitrary whitespace in the file, but tokens cannot contain whitespace.

A parent class name of 0 (zero) indicates the root level of the hierarchy, and all parent classes must be defined before subclasses. After the line listing the class, the parent class, and the number of models, the model identifiers are specified.

Class names must be unique.

Comments are not allowed in the file.

We provide free example software for parsing classification files.

Below is an example .cla file:

PSB 1
5 17

aircraft 0 4
1119
1121
1123
1125

animal 0 0

quadruped animal 0

dog quadruped 7
86
87
88
89
90
91
92

horse quadruped 6
103
104
105
106
107
108