Skip to content

core.services.data.dataset.uploader.utils

utils

Functions:

Name Description
get_datalake_and_tag

Retrieve datalake and data_tag from context or arguments.

initialize_coco_data

Ensure COCO data is initialized properly.

configure_dataset_type

Configure dataset type if not already set.

determine_inference_type

Determine and set the inference type based on annotations.

upload_images_and_annotations

Upload dataset based on inference type.

upload_images

Upload images to the dataset.

upload_annotations

Upload annotations based on inference type.

get_datalake_and_tag(context, datalake, data_tag)

Retrieve datalake and data_tag from context or arguments.

initialize_coco_data(dataset)

Ensure COCO data is initialized properly.

configure_dataset_type(dataset, annotations)

Configure dataset type if not already set.

determine_inference_type(dataset, annotations)

Determine and set the inference type based on annotations.

upload_images_and_annotations(dataset, datalake, data_tag, use_id=True, fail_on_asset_not_found=True, replace_annotations=False)

Upload dataset based on inference type.

Supports Classification, Object Detection, and Segmentation inference types.

upload_images(dataset, datalake, data_tag)

Upload images to the dataset.

upload_annotations(dataset, use_id=True, fail_on_asset_not_found=True, replace_annotations=False)

Upload annotations based on inference type.

Supports Classification, Object Detection, and Segmentation inference types.