- Overview
- Getting Started Guide
- UserGuide
-
References
-
ABEJA Platform CLI
- CONFIG COMMAND
- DATALAKE COMMAND
- DATASET COMMAND
- TRAINING COMMAND
-
MODEL COMMAND
- check-endpoint-image
- check-endpoint-json
- create-deployment
- create-endpoint
- create-model
- create-service
- create-trigger
- create-version
- delete-deployment
- delete-endpoint
- delete-model
- delete-service
- delete-version
- describe-deployments
- describe-endpoints
- describe-models
- describe-service-logs
- describe-services
- describe-versions
- download-versions
- run-local
- run-local-server
- start-service
- stop-service
- submit-run
- update-endpoint
- startapp command
-
ABEJA Platform CLI
- FAQ
- Appendix
create-dataset-item
Description
Create a dataset item.
Synopsis
$ abeja dataset create-dataset-item --help
Usage: abeja dataset create-dataset-item [OPTIONS]
Create dataset item
Options:
-d, --dataset_id, --dataset-id TEXT
Dataset id [required]
-p, --payload FILENAME Dataset item payload to create [required]
--help Show this message and exit.
Options
-d
, --dataset_id
Specify the dataset ID to create a new dataset item. (Required)
-p
, --payload
Specify the parameter of new dataset item. The format of parameter is json format or yaml format. (Required)
You can refer to the content of parameter ( source_data and attributes ) at API document .
Payload definition example (dataset_item_payload.yml)
source_data:
- data_type: images/jpeg
data_uri: 'datalake://1200000000000/20170815T044617-f20dde80-1e3b-4496-bc06-1b63b026b872'
height: 500
width: 200
attributes:
classification:
- category_id: 1
label_id: 1
Example
Create dataset item
Create a new dataset item.
Command:
$ abeja dataset create-dataset-item --dataset_id xxxx --payload ./dataset_item_payload.yml