Skip to content

Commit

Permalink
docs: use ".com" url to replace ".cn" url
Browse files Browse the repository at this point in the history
PR Closed: #1252
  • Loading branch information
graczhual committed May 10, 2022
1 parent 81a799a commit ad228b9
Show file tree
Hide file tree
Showing 48 changed files with 73 additions and 72 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ of OpenAPI and SDK. As a result, the SDK under version v1.6.0 does not work anym

---

TensorBay Python SDK is a python library to access [TensorBay](https://gas.graviti.cn/tensorbay/)
TensorBay Python SDK is a python library to access [TensorBay](https://gas.graviti.com/tensorbay/)
and manage your datasets.
It provides:

Expand All @@ -39,7 +39,7 @@ More information can be found on the [documentation site](https://tensorbay-pyth
## Usage

An **AccessKey** is needed to communicate with TensorBay.
Please visit [this page](https://gas.graviti.cn/tensorbay/developer) to get an **AccessKey** first.
Please visit [this page](https://gas.graviti.com/tensorbay/developer) to get an **AccessKey** first.

### Authorize a client object

Expand Down
2 changes: 1 addition & 1 deletion docs/code/BSTLD.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Authorize a Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")


Expand Down
2 changes: 1 addition & 1 deletion docs/code/CADC.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from tensorbay import GAS
from tensorbay.dataset import FusionDataset

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
""""""

Expand Down
2 changes: 1 addition & 1 deletion docs/code/DogsVsCats.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Authorize a Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
""""""

Expand Down
2 changes: 1 addition & 1 deletion docs/code/LeedsSportsPose.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Authorize a Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
""""""

Expand Down
2 changes: 1 addition & 1 deletion docs/code/NeolixOD.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Authorize a Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
""""""

Expand Down
2 changes: 1 addition & 1 deletion docs/code/Newsgroups20.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Authorize a Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
""""""

Expand Down
2 changes: 1 addition & 1 deletion docs/code/THCHS30.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Authorize a Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
""""""

Expand Down
2 changes: 1 addition & 1 deletion docs/code/VOC2012Segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"""Authorize a Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
""""""

Expand Down
2 changes: 1 addition & 1 deletion docs/code/basic_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Authorize a Dataset Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.create_dataset("<DATASET_NAME>")

Expand Down
2 changes: 1 addition & 1 deletion docs/code/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""Authorize a Dataset Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.create_dataset("<DATASET_NAME>")
dataset_client.create_draft("draft-1")
Expand Down
2 changes: 1 addition & 1 deletion docs/code/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from tensorbay import GAS
from tensorbay.dataset import Dataset

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset = Dataset("<DATASET_NAME>", gas)
""""""
Expand Down
2 changes: 1 addition & 1 deletion docs/code/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""Authorize a Dataset Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.create_dataset("<DATASET_NAME>")
dataset_client.create_draft("draft-1")
Expand Down
2 changes: 1 addition & 1 deletion docs/code/draft_and_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""Authorize a Dataset Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.create_dataset("<DATASET_NAME>")
""""""
Expand Down
2 changes: 1 addition & 1 deletion docs/code/merge_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""Create Target Dataset"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.create_dataset("mergedDataset")
dataset_client.create_draft("merge dataset")
Expand Down
2 changes: 1 addition & 1 deletion docs/code/request_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
config.timeout = 40
config.max_retries = 4

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")

# The configs will apply to all the requests sent by TensorBay SDK.
Expand Down
2 changes: 1 addition & 1 deletion docs/code/search_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Obtain a SearchResult Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.get_dataset("<DATASET_NAME>")

Expand Down
4 changes: 2 additions & 2 deletions docs/code/sextant.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Get sextant client"""
from tensorbay.apps.sextant import Sextant

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
sextant = Sextant("<YOUR_ACCESSKEY>")
""""""

Expand All @@ -29,7 +29,7 @@
"""Create evaluation"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.get_dataset("<DATASET_NAME>")
dataset_client.checkout(revision="<branch/tag/commitId>")
Expand Down
2 changes: 1 addition & 1 deletion docs/code/squash_and_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Authorize a Dataset Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.create_dataset("<DATASET_NAME>")

Expand Down
2 changes: 1 addition & 1 deletion docs/code/storage_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""Get cloud client"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
cloud_client = gas.get_cloud_client("<CONFIG_NAME>")
""""""
Expand Down
2 changes: 1 addition & 1 deletion docs/code/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Authorize a Dataset Client Instance"""
from tensorbay import GAS

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset_client = gas.create_dataset("<DATASET_NAME>")
dataset_client.create_draft("draft-1")
Expand Down
2 changes: 1 addition & 1 deletion docs/code/update_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""Upload Images to the Dataset"""
from tensorbay.dataset import Dataset

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
dataset = Dataset("<DATASET_NAME>")
""""""
Expand Down
2 changes: 1 addition & 1 deletion docs/code/use_dataset_in_paddlepaddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __getitem__(self, idx):


"""Build a dataloader and run it"""
# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
ACCESS_KEY = "<YOUR_ACCESSKEY>"

to_tensor = transforms.ToTensor()
Expand Down
2 changes: 1 addition & 1 deletion docs/code/use_dataset_in_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __getitem__(self, idx):


"""Build a dataloader and run it"""
# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
ACCESS_KEY = "<YOUR_ACCESSKEY>"

to_tensor = transforms.ToTensor()
Expand Down
2 changes: 1 addition & 1 deletion docs/code/use_dataset_in_tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __call__(self):


"""Build a tensorflow dataset and run it"""
# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
ACCESS_KEY = "<YOUR_ACCESSKEY>"

dataset = Dataset.from_generator(
Expand Down
2 changes: 1 addition & 1 deletion docs/code/use_internal_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Set is_internal to True for using internal endpoint.
config.is_internal = True

# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")

# Organize the local dataset by the "Dataset" class before uploading.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/advanced_features/fusion_dataset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
Fusion dataset represents datasets with data collected from multiple sensors.
Typical examples of fusion dataset are some autonomous driving datasets, such as `nuScenes`_ and `KITTI-tracking`_.

.. _nuScenes: https://gas.graviti.cn/dataset/motional/nuScenes
.. _KITTI-tracking: https://gas.graviti.cn/dataset/data-decorators/KITTITracking
.. _nuScenes: https://gas.graviti.com/dataset/motional/nuScenes
.. _KITTI-tracking: https://gas.graviti.com/dataset/graviti/KITTITracking


Fusion dataset is one of the topmost concept in TensorBay format.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/advanced_features/storage_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ In graviti storage mode, the data is stored in graviti storage space on TensorBa
***************************

When using authorized storage config, datasets are stored on user's storage space and are only indexed to the TensorBay.
See `authorized storage instruction <https://docs.graviti.cn/guide/tensorbay/data/authorize>`_ for details about how to configure authorized storage on TensorBay.
See `authorized storage instruction <https://docs.graviti.com/guide/tensorbay/data/authorize>`_ for details about how to configure authorized storage on TensorBay.

TensorBay supports both authorize cloud storage and authorize local storage.

Expand Down Expand Up @@ -105,7 +105,7 @@ TensorBay supports authorized local storage config.
Before creating the local storage config via :func:`~tensorbay.client.gas.GAS.create_local_storage_config`,
you need to start a local storage service. Please contact us on `TensorBay`_ for more information.

.. _TensorBay: https://www.graviti.cn/
.. _TensorBay: https://gas.graviti.com/

.. literalinclude:: ../../../docs/code/storage_config.py
:language: python
Expand Down
5 changes: 3 additions & 2 deletions docs/source/applications/sextant.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#########

TensorBay SDK supports methods to interact with sextant application.
See `authorized storage instruction <https://docs.graviti.cn/apps/sextant>`_ for details about how to start.
See `authorized storage instruction <https://docs.graviti.com/apps/sextant>`_ for details about how to start.

Authorize a Sextant Instance
============================
Expand Down Expand Up @@ -80,4 +80,5 @@ The details of the result structure for the evaluation are as follows:
.. note::

Benchmark can only be created with `tensorbay website <https://gas.graviti.cn/apps/Sextant>`_ now.
Benchmark can only be created with `tensorbay website <https://gas.graviti.com/apps/Sextant>`_ now.

8 changes: 4 additions & 4 deletions docs/source/features/dataset_management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ Two types of datasets can be read from TensorBay:
Visit `my datasets(or team datasets)`_ panel of `TensorBay`_ platform to check all
datasets that can be read.

.. _fork: https://docs.graviti.cn/guide/opendataset/fork
.. _Open Datasets: https://gas.graviti.cn/open-datasets
.. _my datasets(or team datasets): https://gas.graviti.cn/tensorbay/dataset-list
.. _TensorBay: https://gas.graviti.cn/tensorbay/
.. _fork: https://docs.graviti.com/guide/opendataset/fork
.. _Open Datasets: https://gas.graviti.com/open-datasets
.. _my datasets(or team datasets): https://gas.graviti.com/tensorbay/dataset-list
.. _TensorBay: https://gas.graviti.com/tensorbay/

Take the :ref:`Read Dataset of BSTLD <quick_start/examples/bstld:Read Dataset>` as an example.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Commit

The basic element of TensorBay version control system is :ref:`reference/glossary:commit`.
Each commit of a TensorBay dataset is a **read-only** version.
Take the `VersionControlDemo Dataset <https://gas.graviti.cn/dataset/graviti-open-dataset/VersionControlDemo/branch/main>`_ as an example.
Take the `VersionControlDemo Dataset <https://gas.graviti.com/dataset/hellodataset/VersionControlDemo/branch/main>`_ as an example.

.. _commit-demonstration:

Expand All @@ -21,7 +21,7 @@ Take the `VersionControlDemo Dataset <https://gas.graviti.cn/dataset/graviti-ope
The first two commits of dataset "VersionControlDemo".

.. note::
"VersionControlDemo" is an open dataset on `Graviti Open Datasets <https://www.graviti.cn/>`_ platform,
"VersionControlDemo" is an open dataset on `Graviti Open Datasets <https://gas.graviti.com/>`_ platform,
Please fork it before running the following demo code.

At the very beginning, there are only two commits in this dataset(:numref:`Fig. %s <commit-demonstration>`).
Expand All @@ -32,7 +32,7 @@ The code below checkouts to the first commit and check the data amount.
from tensorbay import GAS
from tensorbay.dataset import Dataset
# Please visit `https://gas.graviti.cn/tensorbay/developer` to get the AccessKey.
# Please visit `https://gas.graviti.com/tensorbay/developer` to get the AccessKey.
gas = GAS("<YOUR_ACCESSKEY>")
commits = dataset_client.list_commits()
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This documentation describes
:doc:`SDK </quick_start/getting_started_with_tensorbay>` and
:doc:`CLI </tensorbay_cli/getting_started_with_cli>` tools for using TensorBay.

.. _TensorBay: https://www.graviti.cn/
.. _TensorBay: https://gas.graviti.com/


############################
Expand All @@ -30,7 +30,7 @@ It provides:
- A consistent :doc:`dataset structure </reference/dataset_structure>`
to read and write datasets.

.. _OpenAPI: https://docs.graviti.cn/dev-doc/tools/api-center
.. _OpenAPI: https://docs.graviti.com/dev-doc/tools/api-center


.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion docs/source/integrations/paddlepaddle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###############

This topic describes how to integrate TensorBay dataset with PaddlePaddle Pipeline
using the `DogsVsCats Dataset <https://gas.graviti.cn/dataset/data-decorators/DogsVsCats>`_ as an example.
using the `DogsVsCats Dataset <https://gas.graviti.com/dataset/graviti/DogsVsCats>`_ as an example.

The typical method to integrate TensorBay dataset with PaddlePaddle is to build a "Segment" class
derived from ``paddle.io.Dataset``.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/integrations/pytorch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#########

This topic describes how to integrate TensorBay dataset with PyTorch Pipeline
using the `MNIST Dataset <https://gas.graviti.cn/dataset/data-decorators/MNIST>`_ as an example.
using the `MNIST Dataset <https://gas.graviti.com/dataset/hellodataset/MNIST>`_ as an example.

The typical method to integrate TensorBay dataset with PyTorch is to build a "Segment" class
derived from ``torch.utils.data.Dataset``.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/integrations/tensorflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
############

This topic describes how to integrate TensorBay dataset with TensorFlow Pipeline
using the `MNIST Dataset <https://gas.graviti.cn/dataset/data-decorators/MNIST>`_ as an example.
using the `MNIST Dataset <https://gas.graviti.com/dataset/hellodataset/MNIST>`_ as an example.

The typical method to integrate TensorBay dataset with TensorFlow is to build a callable "Segment" class.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/quick_start/examples/BSTLD.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
BSTLD
########

This topic describes how to manage the `BSTLD Dataset <https://gas.graviti.cn/dataset/data-decorators/BSTLD>`_,
This topic describes how to manage the `BSTLD Dataset <https://gas.graviti.com/dataset/graviti/BSTLD>`_,
which is a dataset with :doc:`/reference/label_format/Box2D` label(:numref:`Fig. %s <example-bstld>`).

.. _example-bstld:
Expand Down
Loading

0 comments on commit ad228b9

Please sign in to comment.