optical.converter.utils¶
__author__: HashTagML license: MIT Created: Sunday, 28th March 2021
Functions
|
copies a file from one path to another |
|
returns protobuf for a given image |
|
checks for whether a directory or file exists in the specified path |
|
given the label df, filters the dataframe by split and/or label category |
|
finds metadata key for sagemaker manifest format |
|
find the splits in the dataset, will ignore splits for which no annotation is found |
|
returns annotation directory given a root directory |
This function return the class_id to class name mapping |
|
|
returns image directory given a root directory |
|
if x is None return y otherwise x after applying transofrmation |
|
read a coco json and returns the images, annotations and categories dict separately |
|
read xml files in the folder and return list's of information used to construct master_df |
|
Decodes images and save in images folder under root |
|
writes json to disk |
|
writes label_map used in tf object detection |
|
write xml files in PASCAL VOC format given a label dataframe |