datumaro.plugins.data_formats.market1501#

Classes

Market1501Base(path, *[, ctx])

Market1501Exporter(extractor, save_dir, *[, ...])

Market1501Importer()

Market1501Path()

class datumaro.plugins.data_formats.market1501.Market1501Path[source]#

Bases: object

QUERY_DIR = 'query'#
BBOX_DIR = 'bounding_box_'#
IMAGE_EXT = '.jpg'#
PATTERN = re.compile('^(-?\\d+)_c(\\d+)s(\\d+)_(\\d+)_(\\d+)(.*)')#
LIST_PREFIX = 'images_'#
UNKNOWN_ID = -1#
ATTRIBUTES = ['person_id', 'camera_id', 'track_id', 'frame_id', 'bbox_id']#
class datumaro.plugins.data_formats.market1501.Market1501Base(path: str, *, ctx: ImportContext | None = None)[source]#

Bases: DatasetBase

class datumaro.plugins.data_formats.market1501.Market1501Importer[source]#

Bases: Importer

DETECT_CONFIDENCE = 20#
classmethod find_sources(path)[source]#
classmethod get_file_extensions() List[str][source]#
class datumaro.plugins.data_formats.market1501.Market1501Exporter(extractor: IDataset, save_dir: str, *, save_media: bool | None = None, image_ext: str | None = None, default_image_ext: str | None = None, save_dataset_meta: bool = False, save_hashkey_meta: bool = False, stream: bool = False, ctx: ExportContext | None = None)[source]#

Bases: Exporter

DEFAULT_IMAGE_EXT = '.jpg'#