Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.02 KB

visualization.rst

File metadata and controls

71 lines (48 loc) · 2.02 KB

Visualization

Pharos is a plug-in of TensorBay SDK used for local visualization. After finishing the dataset organization <features/dataset_management:Organize Dataset>, users can visualize the organized ~tensorbay.dataset.dataset.Dataset instance locally using Pharos. The visualization result can help users to check whether the dataset is correctly organized.

Install Pharos

To install Pharos by pip, run the following command:

$ pip3 install pharos

Pharos Usage

Organize a Dataset

Take the BSTLD <quick_start/examples/BSTLD:Organize Dataset> as an example:

../../../docs/code/pharos.py

Visualize the Dataset

../../../docs/code/pharos.py

Open the returned URL to see the visualization result.

The visualized result of the BSTLD dataset.The visualized result of the BSTLD dataset.

Note

By default, a pharos server runs locally at 127.0.0.1:5000 and is accessible only from localhost. To change the default setting, the following arguments in visualize() can be set:

  • port: the port the server runs in
  • host: the host ip to listen on

Visualize the Dataset on Remote Server

Pharos supports accessing the server remotely via a web browser by setting host to "0.0.0.0". Then open http://{external IP}:{port} in the local browser to get the page. The external IP is external ip of the server which pharos runs on.

../../../docs/code/pharos.py