A python library to access TensorBay and manage your datasets

TensorBay Python SDK

TensorBay Python SDK is a python library to access TensorBay and manage your datasets.
It provides:

  • A pythonic way to access your TensorBay resources by TensorBay OpenAPI.
  • An easy-to-use CLI tool gas (Graviti AI service) to communicate with TensorBay.
  • A consistent dataset format to read and write your datasets.

Installation

pip3 install tensorbay

Documentation

More information can be found on the documentation site

Usage

An AccessKey is needed to communicate with TensorBay. Please visit this page to get an AccessKey first.

Authorize a client object

from tensorbay import GAS
gas = GAS("")

Create a Dataset

gas.create_dataset("DatasetName")

List Dataset names

dataset_names = gas.list_dataset_names()

Upload images to the Dataset

from tensorbay.dataset import

 

 

 

To finish reading, please visit source site