Uploading Raw Data and Labels

A guide for uploading data and creating labels for your project.

Uploading Raw Data

To upload data to a project, move to the dataset directory that has the image files you wish to upload (with extension of .jpg, .png, .gif) and use the following CLI command:

Move to the dataset directory that has image files (with one of the following file extensions: .jpg, .png, .gif) and upload images in the directory by using the following CLI command:

$ cd some-folder
$ spb upload dataset
Project Name: my-project
Dataset Name: my-dataset
Uploading 3 data and 0 labels to dataset 'my-dataset' under project 'my-project'. Proceed? [y/N]: y
Uploading data:
100%|██████████████████████████████████████████████████| 3/3 [00:03<00:00, 1.06s/it]

Uploading Raw Data and Label Together

If you wish to upload the label files (annotation JSON files) along with the raw data, you can enable this by using the --include-label option. Note that the JSON files must be in the same directory as the raw data files.

$ cd some-folder
$ spb upload dataset --include-label
Project Name: my-project
Dataset Name: my-dataset
Uploading 3 data and 0 labels to dataset 'my-dataset' under project 'my-project'. Proceed? [y/N]: y
Uploading data:
100%|██████████████████████████████████████████████████| 3/3 [00:03<00:00, 1.06s/it]
Uploading labels:
100%|██████████████████████████████████████████████████| 3/3 [00:03<00:00, 3.40s/it]

To learn how to create a label JSON file according to the Superb AI format, please refer to the Annotation JSON File Structure section.

Uploading Label Files Only

If you already have raw data uploaded, and wish to upload (or update) the label files (annotation JSON files) only, you can use the following command. Note that you must enter the name of the Dataset that the raw data files which the label files describe belong to. For example, if you upload 1.jpg.json as the label file for 1.jpg, you must enter the name of the dataset and project this 1.jpg file belongs to.

$ cd some-folder
$ spb upload labels
Project Name: my-project
Dataset Name: my-dataset

To learn how to create a label JSON file according to the Superb AI format, please refer to the following page:

Any other questions? E-mail us at support@superb-ai.com.