GlobalFragment#
Warning
The code reference is a work in progress and may contain inconsistencies.
- class idtrackerai.GlobalFragment(fragments: Sequence[Fragment])[source]#
Represents a collection of N_animals coexisting
Fragments.- accumulation_step: int | None = None#
Integer indicating the accumulation step at which the global fragment was globally accumulated.
- property used_for_training: bool#
Boolean indicating if all the fragments in the global fragment have been used for training the identification network
- is_unique(number_of_animals: int) bool[source]#
Boolean indicating that the global fragment has unique identities, i.e. it does not have duplications.
- property is_partially_unique: bool#
Boolean indicating that a subset of the fragments in the global fragment have unique identities
- acceptable_for_training(accumulation_strategy: Literal['global', 'partial']) bool[source]#
Returns True if self is acceptable for training
- property total_number_of_images: int#
Gets the total number of images in self