iaa_od.utils.load_categories

Functions

load_categories_dictionary(filepath)

Load categories from a JSON file and return a dictionary mapping category IDs to names.

iaa_od.utils.load_categories.load_categories_dictionary(filepath)[source]

Load categories from a JSON file and return a dictionary mapping category IDs to names.

Parameters:

filepath (str) – Path to the JSON file containing categories.

Returns:

A dictionary mapping category IDs to category names.

Return type:

dict