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
Before using TensorBay SDK, please finish the following registration steps:
- Please visit Graviti AI Service(GAS) to sign up.
- Please visit Graviti Developer Tools to get an AccessKey.
Note
An AccessKey is needed to authenticate identity when using TensorBay via SDK or CLI.
.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py :language: python :start-after: """Authorize a Client Instance""" :end-before: """"""
.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py :language: python :start-after: """Create a Dataset""" :end-before: """"""
.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py :language: python :start-after: """List Dataset Names""" :end-before: """"""
.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py :language: python :start-after: """Upload Images to the Dataset""" :end-before: """"""
.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py :language: python :start-after: """Read Images from the Dataset""" :end-before: """"""
.. literalinclude:: ../../../docs/code/getting_started_with_tensorbay.py :language: python :start-after: """Delete the Dataset""" :end-before: """"""