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.
To install Pharos by pip, run the following command:
$ pip3 install pharos
Take the BSTLD <quick_start/examples/BSTLD:Organize Dataset>
as an example:
../../../docs/code/pharos.py
../../../docs/code/pharos.py
Open the returned URL to see the visualization result.
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 inhost
: the host ip to listen on
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