Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the SageMaker url for Tensorboard?

I'm trying to access the Tensorboard for the tensorflow_resnet_cifar10_with_tensorboard example, but not sure what the url should be, the help text gives 2 options:

You can access TensorBoard locally at http://localhost:6006 or using your SageMaker notebook instance proxy/6006/(TensorBoard will not work if forget to put the slash, '/', in end of the url). If TensorBoard started on a different port, adjust these URLs to match.

When it says access locally, does that mean the local container Sagemaker creates in AWS? If so, how do I get there?

Or if I use run_tensorboard_locally=False, what should the proxy url be?

like image 934
WBC Avatar asked Dec 20 '17 20:12

WBC


People also ask

What's a SageMaker endpoint?

This is where an Amazon SageMaker endpoint steps in – an Amazon SageMaker endpoint is a fully managed service that allows you to make real-time inferences via a REST API.

What is domain in SageMaker studio?

Domain: An Amazon SageMaker Domain consists of an associated Amazon Elastic File System (Amazon EFS) volume; a list of authorized users; and a variety of security, application, policy, and Amazon Virtual Private Cloud (Amazon VPC) configurations. An AWS account is limited to one Domain per Region.


2 Answers

Here is my solution:

If URL of my sagemaker notebook instance is:

https://myinstance.notebook.us-east-1.sagemaker.aws/notebooks/image_classify.ipynb

And URL of accessing TensorBoard will be:

https://myinstance.notebook.us-east-1.sagemaker.aws/proxy/6006/
like image 94
T.C. Liu Avatar answered Oct 19 '22 16:10

T.C. Liu


You can access TensorBoard on your notebook using the link "proxy/6006".

If you set run_tensorboard_locally=False then it won't start TensorBoard.

If the URL you clicked gives you the error "[Errno 111] Connection refused" then it seems that training has already stopped. According to https://github.com/aws/sagemaker-python-sdk it "terminates TensorBoard when the execution ends" so it seems you have to access it during the training step only.

like image 3
Dmytro Savochkin Avatar answered Oct 19 '22 15:10

Dmytro Savochkin