get_label

lib.training.data.data_set.get_label(index: int, num_identities: int, next_identity: bool = False) str

Obtain the label for the given current index. Labels start at A at index 0. Values roll.

Parameters:
  • index (int) – The index of the current label

  • num_identities (int) – The number of identities that belong to the label set

  • next_identity (bool) – True to return the next identity for the given index. Default: False

Return type:

The current or next label. Labels go A-Z,0-9,a-z