Created
July 24, 2020 00:05
-
-
Save smiile8888/af483ce1631b79f8bad979deb4c7e289 to your computer and use it in GitHub Desktop.
Porting tensorboard on local machine or the server with ngrok
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/env python | |
# kill process on the particular port that you want to run tensorboard on, this case is 6006 | |
kill -9 $(lsof -t -i:6006) | |
# run tensorboard on localhost on background | |
tensorboard --logdir logs --host localhost --port 6006 & | |
# port to ngrok, make sure to call the right path of ngrok | |
./ngrok http 6006 | |
# the link will show on terminal (see attached image on my comment) | |
# open URL and you will see tensorboard up and running! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisite:
ngrok
: create an account and follow the setup if you haven't doneNote: when call
ngrok
, please make sure it's on the right pathHere is what you will see after run
sh tensorboard_logs.sh