Skip to content

Latest commit

 

History

History
88 lines (61 loc) · 2.15 KB

getting_started_with_tensorbay.rst

File metadata and controls

88 lines (61 loc) · 2.15 KB

Getting started with TensorBay

Installation

To install TensorBay SDK and CLI by pip, run the following command:

$ pip3 install tensorbay

To verify the SDK and CLI version, run the following command:

$ gas --version

Registration

Before using TensorBay SDK, please finish the following registration steps:

Note

An AccessKey is needed to authenticate identity when using TensorBay via SDK or CLI.

Usage

Authorize a Client Instance

.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py
      :language: python
      :start-after: """Authorize a Client Instance"""
      :end-before: """"""


Create a Dataset

.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py
      :language: python
      :start-after: """Create a Dataset"""
      :end-before: """"""

List Dataset Names

.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py
      :language: python
      :start-after: """List Dataset Names"""
      :end-before: """"""

Upload Images to the Dataset

.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py
      :language: python
      :start-after: """Upload Images to the Dataset"""
      :end-before: """"""

Read Images from the Dataset

.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py
      :language: python
      :start-after: """Read Images from the Dataset"""
      :end-before: """"""

Delete the Dataset

.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py
      :language: python
      :start-after: """Delete the Dataset"""
      :end-before: """"""