Dataset#
The Dataset object#
Dataset base class for manipulation |
Input Output#
Save dataset object to a folder containing parquet files for dataframes and a metadata.yaml file for other attributes. |
|
Convert dataset to cAIpy format. |
|
Save dataset in darknet format, readable by darknet . |
|
Save dataset in coco format. |
|
Convert the dataset into a |
|
Load a Dataset object from a folder with parquet files for its dataframes. |
|
Load a dataset stored in the cAIpy format |
|
Load a dataset stored in the cAIpy format, but you can specify images and annotations folders rather than giving a folder with Images and Annotations sub-folders. |
|
Load a coco json file into a dictionary. |
|
Load a folder of images into a dataset without annotations. |
|
Load a dataset stored in the MOT format. |
|
Read a dataset in the format described for CrowdHuman |
|
Creates dataset object from a darknet dataset. |
|
Creates dataset object from a darknet dataset. |
|
Generic function to load a darknet like dataset by only giving it folders, class names and optionally file list instead of a data file. |
|
Same as from_darknet, expect the data file replaced with a json file containing directly annotations information. |
|
Load a dataset in pascalVOC format |
|
Load a pascalVOC detection dataset that follows the official structure. |
Remapping#
Remap classes ids and names according to a dictionary |
|
Same as class remap, but instead of taking a dictionary, you give the name of a preset. |
|
Same as class remap, but instead of taking a dictionary, you give the path to a csv file. |
|
Same as class remap, but instead of taking a dictionary, you give a dataframe. |
|
Try to remap classes of dataset to match the ones in another dataset by retrieving categories with the same name. |
|
Perform a simple remapping, where given classes are removed |
Merging#
Merge two datasets and return a unique dataset object containing Samples from both. |
|
Overloading of the "+" operator for Datasets. |
Splitting#
Perform the split operation on annotations and images. |
|
Simple version of splitting method, splitting images randomly. |
Indexing#
Filter a dataset by indexing the images you want with their ids |
|
Filter a dataset by indexing the images you want with their row number. |
|
Filter a dataset by indexing the annotations you want with their id. |
|
Filter a dataset by indexing the annotations you want with their row number. |
|
Method equivalent of |
|
Method equivalent of |
Re-Indexing#
Reindex a dataset from another images DataFrame. |
|
Reset index of |
|
Reset index of images and annotations dataframe with index maps (index -> new_index) where the value is new index to apply. |
Internal API#
Registry for known useful preset. |
|
Module dedicated to Dataset indexers, to be able to index Dataset with pandas style loc and iloc methods |