Go to Classes to view, add, edit, and delete classes and attributes.

Number

Function

1

Add attribute group

2

Delete class

3

Allow the multiple selection of attributes

4

Delete attribute group

5

Add attribute

6

Click X to delete the attribute

7

Edit the class color

8

Add a new class

Add classes and attributes

Upload classes with Python SDK

You can upload classes with Python SDK. Learn more.

Create classes and attributes

To add a class:

  1. In Classes, click New Class.
  2. Type a class name.
  3. Choose a color.
  4. Add attributes (optional).

To add an attribute:

  1. Click Add Attribute Group.
  2. Type a name for your attribute group.
  3. Type an attribute name.
  4. Click + to add the attribute.

You can add multiple attribute groups and attributes.

📘

To edit classes and attributes, go to Classes and make the modifications. Your changes will be saved automatically.

👍

Check Allow multiple selection if the attributes can exist within an object simultaneously. When you do that, you'll be able to assign multiple attributes to an object. For example, if the object you're annotating is a black and orange car, choose both black and orange from the list of attributes.

❗️

Don't check Allow multiple selection if the attributes can't exist simultaneously. For example, a dog can't be small-sized and medium-sized at the same time.

Remove classes and attributes

To remove a class:

  1. In Classes, find the class you want to remove.
  2. Click the delete button.

❗️

You can't delete a class if it's used in at least one Completed image.

To remove an attribute group:

  1. In Classes, find the attribute class you want to remove.
  2. Click the delete button.

To remove an attribute:

  1. In Classes, find the attribute you want to remove.
  2. Click the X button.

JSON file of exported classes

{
    "id": 347299,
    "project_id": 9425,
    "name": "Cuboid",
    "color": "#e6dc27",
    "count": 0,
    "createdAt": "2021-01-14T11:01:01.000Z",
    "updatedAt": "2021-01-14T11:01:01.000Z",
    "attribute_groups": [
      {
        "id": 163394,
        "class_id": 347299,
        "name": "Position",
        "is_multiselect": 0,
        "createdAt": "2021-01-14T11:01:12.000Z",
        "updatedAt": "2021-01-14T11:01:28.000Z",
        "attributes": [
          {
            "id": 655173,
            "group_id": 163394,
            "project_id": 9425,
            "name": "Middle",
            "count": 0,
            "createdAt": "2021-01-14T11:01:15.000Z",
            "updatedAt": "2021-01-14T11:01:15.000Z"
          }]
      }]
}

Description:

  • “id”: integer - Class ID
  • “project_id”: integer - Project ID
  • “name”: string - Class Name
  • “color”: string - Class color (example: “#000000”, black)
  • “count”: integer - The number of instances.
  • “createdAt”: string - The time the class was created.
  • “updatedAt”: string - The last time a user updated the class.
  • “attribute_groups”: array of objects - List of all the attributes
    • “id”: integer - Group ID
    • “class_id”: integer - Class ID (must be the same as “id”)
    • “name”: string - Attribute Name
    • “is_multiselect” : integer - It’s either 0 or 1. It’s 1 if you can select multiple attributes, and it’s 0 if you can choose only one attribute.
    • “createdAt”: string - The time the attribute group was created.
    • “updatedAt”: string - The last time a user updated the attribute group.
    • “attribute”: array of objects - List of attribute values.
      • “id”: integer - Attribute value ID
      • “group_id”: integer - Group ID (must be the same as “id”)
      • “project_id”: integer - Project ID
      • “name”: string - Attribute value
      • “count”: integer - The number of attributes.
      • “createdAt”: string - The time the attribute was created.
      • “updatedAt”: string - The last time a user updated the attribute.

Did this page help you?