Attributes

A Label tells what the ModelVersion found, but not always what a Computer Vision team needs to know about it: is the fruit ripe, how severe is the defect, was the image taken at night? The Attribute of a Deployment capture this kind of information during the review of the PredictedAsset, in a structured way, so that you can then filter the production images on it and measure how your ModelVersion behaves in each condition, instead of relying on free-text notes kept outside Picsellia.

They also spare you a second pass on the same images. While you review a prediction, you correct its Shape and, in the same tool, check or fill in its Attribute, both on the Asset and on each Shape. Once the PredictedAsset is reviewed, you send it to the Feedback Loop, and it reaches the DatasetVersion with its Attribute already in place. Without this, you would have to review the Shape in the Deployment, then reopen each Asset in the Studio of the DatasetVersion to fill in the Attribute afterward.

They work the same way as the Attribute of a DatasetVersion, detailed in Attributes: the same two kinds coexist, with the same configuration. A Shape Attribute is attached to a Label and filled in for each Shape of the review, and an Asset Attribute is attached to the whole PredictedAsset.

1. Configure Attribute

Attribute are configured from the Settings tab of the Deployment, in the Labels section. The section lists the Label of the Deployment. Once some Attribute are configured, its header displays the number of Asset Attribute (1 asset attribute), and each Label row displays the number of its Shape Attribute (1 attribute).

Labels with their attribute counts

A. Shape Attribute

A Shape Attribute is defined at the Label level and is filled in for each Shape that uses this Label. Click on + Add attribute in the row of the Label, type the key of the Attribute, and click on Add to configure it. Picsellia offers the same options as on a DatasetVersion:

  • A name, and a Type (String by default).
  • Whether it is Required.
  • A Display, which sets the input shown during the review, for instance Dropdown or Radio buttons for a list of Choices.
  • Under Advanced parameters: a predefined list of Choices (press Enter to add the next one) and Allow multiple answers to let several Choices be selected at once. For a numerical Type, a Min / Max bound is available, as detailed in Attributes.

An Edit / Preview switch sits at the top of the form. Click on Create to save. You can add several Attribute in the same form, and do the same for any other Label that needs some. Once a Label has a Shape Attribute, its + Add attribute button is replaced by the count button (1 attribute), used to update them as described below.

Create Shape Attributes

B. Asset Attribute

An Asset Attribute is attached to the PredictedAsset as a whole, for instance the lighting conditions of the image, independently of how many Shape it contains. It is not attached to any Label: use the ... menu in the header of the Labels section, then Add attribute. The form is the same as for a Shape Attribute.

Add Asset Attributes

C. Update or delete Attribute

Click on the number of Shape Attribute of a Label to update their configuration: edit them, add new ones, or remove one with its trash icon and click on Update. For the Asset Attribute, the header menu now offers Update attributes and Delete attributes, the latter deleting all of them.

Update attributes

❗️

Deleting Attribute cannot be undone. Picsellia asks for a confirmation before deleting the Asset Attribute, and warns that the operation cannot be undone.

Delete attributes

2. Fill in Attribute values

Attribute values are filled in during the review of a PredictedAsset, from the Prediction Review tool, which you open with the Review button of the Details view or the pen icon of a thumbnail. They are saved with the review, which is the human point of view on what the ModelVersion predicted.

Open the Attributes tab from the right-side floating menu of the tool. It lists, for the PredictedAsset displayed:

  • An Asset attributes section, with one input per Asset Attribute.
  • One section per Shape, named after its Label and its index (for instance strawberry-fruit #1), with one input per Shape Attribute configured on that Label.

Each input matches the configuration of its Attribute: the Choices if there are some, marked with a red * when the Attribute is Required. A Clear button resets a value. Click on Save at the bottom of the panel to save the review: the PredictedAsset then gets the Reviewed status.

Attributes tab of the Prediction Review tool

🚧

Invalid Attribute values block saving. Every value is checked against the configuration of its Attribute. As long as a Required Attribute is empty, or a value does not match its configuration, the Shape concerned is marked with a warning in the Shapes panel and on the image, and the Attributes tab displays the number of values that still need to be fixed.

Saving with an invalid value fails: an error names what is incomplete, for instance invalid attributes for asset, strawberry-fruit #1. Fix the values, then save again. For a Computer Vision team, this is what keeps the reviewed PredictedAsset free of half-filled Attribute that an analysis would have to guess around later.

Missing required attribute warning

The Details view and the Table view of the Predictions tab do not display the Attribute values: you read and edit them from the Prediction Review tool.

3. Filter on Attribute values

Recording a value pays off when you can retrieve the PredictedAsset that carry it: isolate the predictions made at night to check whether the ModelVersion drops there, or gather the fruits marked as overripe before sending them back for annotation.

From the Predictions tab, Add filter, detailed in Predictions overview, offers two sections for the Attribute:

  • Reviewed shapes attributes, on the values entered during the review.
  • Predicted shapes attributes, on the values carried by the Shape of the Prediction.

In each of them, either select a Label and one of its Shape Attribute, or choose one of the Asset Attribute (Attributes on asset). Then choose how to compare: Equals, Contains, Starts with, or Ends with, and pick a value, the configured Choices being suggested. Click on Apply.

Attribute filter

The active filter is displayed next to Add filter (for instance 'lighting' equals 'day'), with a cross to remove it, and the list narrows down to the matching PredictedAsset.

List filtered on an Asset Attribute

The Attribute values can also be used in the Charts of the Deployment, to aggregate them.


Did this page help you?