Starting TensorBoard b'54' at http://ASUS-PC:6006 - tensorflow

tensorboard --logdir=-logs
Starting TensorBoard b'54' at http://ASUS-PC:6006
(Press CTRL+C to quit)
I try to use tensorboard, connecting http://ASUS-PC:6006 or http://localhost:6006, but I can't see anything. How can I fix it? I use pycharm. Sorry I don't have enough reputation in it.

Related

Google Collab incompatibility with TensorBoard

In a Google Collab notebook once I execute the commands:
%load_ext tensorboard
%tensorboard --logdir <data_directory>
I am unable to save the model in the cloud, not only automatically but also manually.
Someone has an idea on why this can be happening?
If its helpful for someone else; executing in an independent module at the beginning the command:
%load_ext tensorboard
And at the end of the program in a separated module
%tensorboard --logdir <folder_name>
Worked for me and allows to save my work despite the TensorBoard module being loaded in the system

Couldn't open tensorboard with localhost?

I use a google instance to train my model.
I want to check the performance via tensorboard
I ran : tensorboard --logdir ./data/log and got : TensorBoard 2.1.1 at http://localhost:6006/ (Press CTRL+C to quit)
But trying to access http://localhost:6006/ in chorme, it doesnt work ( This site can’t be reached )
NOTE : I'm running this in google server instance and want to access it on my local chorme.

'View TensorBoard' goes to 502 Bad Gateway

​Hello,
I am trying to launch Tensor board on Tensorflow/Keras on Azure Databricks,
but it will go to '502 Bad Gateway' after clicking 'View TensorBoard'.
Please advise how to fix this.
Thanks.
Lo​oking for active tensorboard process...
Active tensorboard processkilled...
Starting tensorboard process...
Tensorboard process started.
TensorBoard log directory set to: /dbfs/ml/lenet/train/1570698969.0092866. View TensorBoard

How to open TensorBoard from datalab when proxy port number indicated

I’m using a python notebook in gGloud datalab to re-train a neural network.
From the notebook I call retrain.py with
!python -m retrain --bottleneck_dir=../tf_files/bottlenecks --how_many_training_steps=500 --model_dir=../tf_files/models/ --summaries_dir=../tf_files/training_summaries/'mobilenet_1.0_224' --output_graph=../tf_files/retrained_graph.pb --output_labels=../tf_files/retrained_labels.txt --architecture='mobilenet_1.0_224' --image_dir=../tf_files/flower_photos
Within retrain.py I import the Tensorboard with
from google.datalab.ml import TensorBoard as tb
followed by the main function that does a bunch of things for the training process followed by:
inti=tf.global_variables_initializer()
sess.run(init)
tb.start('./tmp/retrain_logs’)
Executing retrain.py, a neural network will be trained, and TensorBoard will be activated (as stated in the output of my notebook copied below)
TensorBoard 1.8.0 at http://3439c553be9b:59199 (Press CTRL+C to quit)
{'text/html':TensorBoard was started successfully with pid 7707. Click here to access it.}
I tried to see the TensorBoard by:
clicking on the link provided (http://3439c553be9b:59199). A site on my web-brower opens but is empty.
I used gCloud Shell to connect with 'datalab connect --port=59199 .' This brings me to my files on gCloud, but not to a TensorBoard.
Can someone tell me how to access the TensorBoard please?
Thank you,
Julia
Just clicking on the link should work.
Could you check to see if you have a firewall rule that is preventing this?
I think the first string "TensorBoard 1.8.0 at http://3439c553be9b:59199 (Press CTRL+C to quit) " was output by the new tensorboard version. The direct link won't work.
The second string "TensorBoard was started successfully with pid 7707. Click here to access it.", the word "here" should be backed up by a hyperlink. See code https://github.com/googledatalab/pydatalab/blob/master/google/datalab/ml/_tensorboard.py#L73. That link should work. Do you get that link?

TensorFlow - how to stop TensorBoard from command line in Windows?

If I put the following at the end of a TensorFlow Python program:
# show the result in TensorBoard
tfFileWriter = tf.summary.FileWriter(os.getcwd())
tfFileWriter.add_graph(sess.graph)
tfFileWriter.close()
I get a file in the same directory that is titled something like:
events.out.tfevents.1513529946.DESKTOP-KR0HCRR
Then I open a command prompt and enter:
tensorboard --logdir C:\Users\cdahms\Documents\TensorFlowExample9
I get the output from the command line:
TensorBoard 0.1.8 at http://DESKTOP-KR0HCRR:6006 (Press CTRL+C to quit)
If I open a broswer and go to http://localhost:6006 I get the expected TensorBoard graph.
Problem is, if I press CTRL+C the process from the command line does not quit as the TensorBoard output indicates. Here is a screenshot if that would be helpful:
I gather the CTRL+C must be for Linux and/or Mac but does not work in Windows. I've also tried x, Ctrl+X, Ctrl+Z, Esc, Crtl+Esc, and pretty much every other combination of keystroke to stop a process that I've ever known of.
Is there a combination of keystroke(s) that can stop TensorBoard on Windows?
To clarify I'm using Windows 10 and PyCharm as an editor (I'm not using a Jupyter Notebook)
Also, before somebody responds "just close that command line window and that will end TensorBoard, then open another command line window" yes, of course I understand I can do that, however it would be preferable to be able to stop TensorBoard from the command line and then re-start it after changing a script without having to close/re-open a new command line window.
Per this response from nfelt, I found that if I pressed Ctrl+C multiple times, usually 2 or 3, that would stop tensorboard. Also as nfelt mentioned I found that Ctrl + Pause/Break almost always stopped tensorboard immediately.