init_annotations#

Dataset.init_annotations()[source]#

Initialize annotations by adding info and checking index

  • add category_str column (for informative purpose only, label map prevails)

  • add split column (for informative purpose only, images split prevails)

  • reset index if it has duplicates.

  • apply the right dtypes

  • reorder the columns so that required columns are first and attributes last