create-dataset

Description

Create a dataset from CLI.

Synopsis

$ abeja dataset create-dataset [--help]
Usage: abeja dataset create-dataset [OPTIONS]

  Create dataset channel

Options:
  -n, --name TEXT       Display name  [required]
  -t, --type TEXT       Type of dataset ex. classification, detection
                        [required]
  -p, --props FILENAME  Format to validate annotation attributes.  [required]
  --help                Show this message and exit.

Options

-n, --name

Specify the dataset name. (Required)

-t, --type

Specifies the type of dataset. (Required) ( classification , detection , segmentation-image , custom )

-p, --props

Specify the file that defines the label of the dataset. (Required)

Label definition example (filename : property_file.json)

{
  "categories": [
        {
            "labels": [
                {
                    "label_id": 1,
                    "label": "dog"
                },
                {
                    "label_id": 2,
                    "label": "cat"
                },
                {
                    "label_id": 3,
                    "label": "others"
                }
            ],
            "category_id": 1,
            "name": "cats_dogs"
        }
    ]
}

Example

Create a dataset.

Create a dataset.

Command:

$ abeja dataset create-dataset --name demo-dataset \
                                     --type classification \
                                     --props ./property_file.json