Undocumented
| Function | clone |
Clone an existing dataset with a new name. |
| Function | delete |
Delete a dataset from local storage, remote storage, or both. |
| Function | export |
Export a Luxonis dataset to disk. |
| Function | health |
Plot class distributions and heatmaps for every task type and corresponding task name in the dataset. |
| Function | info |
Print information about a dataset. |
| Function | inspect |
Inspect images and annotations in a dataset. |
| Function | ls |
List datasets. |
| Function | merge |
Merge two datasets stored in the same type of bucket. |
| Function | parse |
Parse a directory with data and create a Luxonis dataset. |
| Function | pull |
Pull a remote dataset to local storage. |
| Function | push |
Push a local dataset to cloud storage. |
| Function | sanitize |
Remove duplicate annotations and duplicate files from the dataset. |
| Type Alias | |
Undocumented |
| Variable | app |
Undocumented |
str, new_name: str, *, push: Annotated[ bool, Parameter( alias=-p, negative='')] = True, bucket_storage: BucketStorageT = BucketStorage.LOCAL, split: Annotated[ list[ str] | None, Parameter( alias=(-s))] = None, team_id: Annotated[ str | None, Parameter( alias=(-t))] = None):
¶
Clone an existing dataset with a new name.
Optionally push it to cloud storage if it is a remote dataset.
| Parameters | |
name:str | Name of the source dataset to clone. |
newstr | Name of the new cloned dataset. |
push:Annotated[ | If True, upload the newly cloned dataset to cloud storage. |
bucketBucketStorageT | Storage type of the source dataset. |
split:Annotated[ | List of split names to clone. If not provided, all splits will be cloned. Example: --split train --split val to clone only the "train" and "val" splits. |
teamAnnotated[ | Team ID to use for the new dataset. |
str, bucket_storage: BucketStorageT = BucketStorage.LOCAL, local: Annotated[ bool, Parameter( alias=-l, negative='')] = False, remote: Annotated[ bool, Parameter( alias=-r, negative='')] = False, yes: Annotated[ bool, Parameter( alias=-y, negative='')] = False):
¶
Delete a dataset from local storage, remote storage, or both.
| Parameters | |
*names:str | Name(s) of the dataset to delete. |
bucketBucketStorageT | Storage type of the dataset. |
local:Annotated[ | If True, delete the dataset from local storage. |
remote:Annotated[ | If True, delete the dataset from remote storage. |
yes:Annotated[ | If True, skip confirmation prompt and delete immediately. |
str, *, save_dir: Annotated[ str | None, Parameter( alias=(-s))] = None, dataset_type: Annotated[ DatasetType, Parameter( name=(--type), alias=(-t))] = DatasetType.NATIVE, delete_existing: Annotated[ bool, Parameter( name=--delete, alias=-d, negative='')] = False, max_partition_size_gb: Annotated[ float | None, Parameter( alias=(-m))] = None, zip: bool = True, bucket_storage: BucketStorageT = BucketStorage.LOCAL):
¶
Export a Luxonis dataset to disk.
| Parameters | |
name:str | Name of the dataset to export. |
saveAnnotated[ | Directory where the exported dataset will be saved. If not provided, a directory with the same name as the dataset will be created in the current working directory. |
datasetAnnotated[ | Format of the exported dataset. |
deleteAnnotated[ | If True, delete any existing directory at the save location before exporting. |
maxAnnotated[ | Maximum size of each partition in GB. If not provided, no partitioning will be done. |
zip:bool | If True, the exported dataset will be zipped into a single archive. If False, the dataset will be exported as a directory with the specified structure. |
bucketBucketStorageT | Storage type of the dataset. |
str, *, view: Annotated[ str | None, Parameter( alias=(-v))] = None, sample_size: Annotated[ int | None, Parameter( alias=(-n))] = None, save_dir: Annotated[ str | None, Parameter( alias=(-s))] = None, bucket_storage: BucketStorageT = BucketStorage.LOCAL):
¶
Plot class distributions and heatmaps for every task type and corresponding task name in the dataset.
Also checks for files with missing annotations, files that share the same UUIDs, and files with duplicate annotations.
| Parameters | |
name:str | Name of the dataset to inspect. |
view:Annotated[ | Which split of the dataset to inspect. If not provided, all splits will be inspected. |
sampleAnnotated[ | Number of annotation rows to sample from the dataset for calculating statistics and plots. If not provided, all annotations will be used. |
saveAnnotated[ | Directory where the generated plots will be saved. If not provided, the plots will be displayed interactively instead of being saved. |
bucketBucketStorageT | Storage type of the dataset. |
Print information about a dataset.
| Parameters | |
name:str | Name of the dataset. |
bucketBucketStorageT | Storage type of the dataset. |
str, *, view: Annotated[ list[ str] | None, Parameter( alias=(-v))] = None, aug_config: Annotated[ Path | None, Parameter( alias=-a, validator=validators.Path( exists=True, ext=set([ '.json', '.yaml', '.yml'])))] = None, size_multiplier: Annotated[ float, Parameter( alias=(-s))] = 1.0, ignore_aspect_ratio: Annotated[ bool, Parameter( alias=-i, negative='')] = False, deterministic: Annotated[ bool, Parameter( alias=-d, negative='')] = False, force_update: Annotated[ bool, Parameter( alias=-f, negative='')] = False, blend_all: Annotated[ bool, Parameter( alias=-bl, negative='')] = False, per_instance: Annotated[ bool, Parameter( alias=-pi, negative='')] = False, list_augmentations: Annotated[ bool, Parameter( negative='')] = False, print_sample_metadata: Annotated[ bool, Parameter( negative='')] = True, bucket_storage: BucketStorageT = BucketStorage.LOCAL):
¶
Inspect images and annotations in a dataset.
| Parameters | |
name:str | Name of the dataset to inspect. |
view:Annotated[ | Which splits of the dataset to inspect. If not provided, the "train" split will be inspected by default. |
augAnnotated[ | Path to a JSON or YAML config defining augmentations to apply when inspecting the dataset. If not provided, no augmentations will be applied. |
sizeAnnotated[ | Multiplier for the displayed image size. |
ignoreAnnotated[ | Do not keep the aspect ratio when resizing images. |
deterministic:Annotated[ | Use deterministic augmentation mode. |
forceAnnotated[ | Force synchronization with remote storage first. |
blendAnnotated[ | Draw labels belonging to different tasks on the same image. |
perAnnotated[ | Show each label instance in a separate window. |
listAnnotated[ | Show the augmentations applied to each displayed image. Requires '--aug-config' to be set. |
printAnnotated[ | Print sample metadata for each displayed sample. |
bucketBucketStorageT | Storage type of the dataset. |
Annotated[ bool, Parameter( alias=(-f))] = False, bucket_storage: BucketStorageT = BucketStorage.LOCAL):
¶
List datasets.
| Parameters | |
full:Annotated[ | If True, show full information about each dataset, including classes and tasks. |
bucketBucketStorageT | Storage type of the dataset. |
str, target_name: str, new_name: Annotated[ str | None, Parameter( alias=(-n))] = None, splits_to_merge: Annotated[ str | None, Parameter( name=(--split), alias=(-s))] = None, bucket_storage: BucketStorageT = BucketStorage.LOCAL, team_id: Annotated[ str | None, Parameter( alias=(-t))] = None):
¶
Merge two datasets stored in the same type of bucket.
| Parameters | |
sourcestr | Name of the source dataset to merge from. |
targetstr | Name of the target dataset to merge into. |
newAnnotated[ | If provided, the name of the new merged dataset. If not provided, the source dataset will be merged into the target dataset in place. |
splitsAnnotated[ | Comma-separated list of split names to merge. If not provided, all splits will be merged. |
bucketBucketStorageT | Storage type for both datasets. |
teamAnnotated[ | Team ID to use for the new dataset. If not provided, the team ID of the target dataset will be used. |
Annotated[ str, Parameter( alias=(--dataset - dir))], *, name: Annotated[ str | None, Parameter( alias=(-n))] = None, dataset_type: Annotated[ DatasetType | None, Parameter( name=(--type), alias=(-t))] = None, bucket_storage: BucketStorageT = BucketStorage.LOCAL, delete_local: Annotated[ bool, Parameter( name=--delete, alias=-d, negative='')] = False, save_dir: Annotated[ Path | None, Parameter( alias=(-s))] = None, task_name: Annotated[ str | None, Parameter( alias=(-tn))] = None, log_all_warnings: bool = False, split_ratio: Annotated[ str | None, Parameter( alias=(-sr))] = None, train: float | None = None, val: float | None = None, test: float | None = None):
¶
Parse a directory with data and create a Luxonis dataset.
| Parameters | |
dataset:Annotated[ | Path or URL to the dataset. |
name:Annotated[ | Name of the dataset. If not provided, the directory name will be used. |
datasetAnnotated[ | Type of the dataset. If not provided, the parser will attempt to detect it. |
bucketBucketStorageT | Storage type of the dataset. |
deleteAnnotated[ | If True, delete any existing local dataset with the same name before parsing. |
saveAnnotated[ | If dataset_dir is a remote URL, this is the local directory where the dataset will be downloaded before parsing. If not provided, the dataset will be downloaded to the current working directory. |
taskAnnotated[ | Task name to use for all records parsed from this dataset. |
logbool | Log all skipped annotation warnings instead of capping the output at 50. |
splitAnnotated[ | A string representation of a Python list specifying the split ratios for train, val, and test sets. Deprecated in favor of --train, --val, and --test. |
train:float | None | Ratio or count of records to assign to the training set. Can be used together with --val and --test. If only some of these options are provided, the remaining split(s) receive an equal share of the leftover records (only supported for ratios, not counts). |
val:float | None | Ratio or count of records to assign to the validation set. |
test:float | None | Ratio or count of records to assign to the test set. |
str, *, force: Annotated[ bool, Parameter( alias=-f, negative='')] = False, bucket_storage: BucketStorageT = BucketStorage.LOCAL):
¶
Pull a remote dataset to local storage.
| Parameters | |
name:str | Name of the dataset to pull. |
force:Annotated[ | If True, pull all media files even if they already exist locally. |
bucketBucketStorageT | Cloud storage type to pull from. Cannot be LOCAL. |
str, *, bucket_storage: BucketStorage, force: Annotated[ bool, Parameter( alias=-f, negative='')] = False):
¶
Push a local dataset to cloud storage.
| Parameters | |
name:str | Name of the dataset to push. |
bucketBucketStorage | Cloud storage type to push to. Cannot be LOCAL. |
force:Annotated[ | If True, push all media files even if they already exist in the target cloud storage. |
Remove duplicate annotations and duplicate files from the dataset.
| Parameters | |
name:str | Name of the dataset to sanitize. |
bucketBucketStorageT | Storage type of the dataset. |