I am using tensorflow on windows and I know that I can run tensorboard manually:
- Open an anaconda prompt
- Activate the tensorflow environment
- Enter the Log directory of the logdir of my tensorflow running in the anaconda prompt
- Enter the command ‘tensorboard –logdir=mylogdir’
- Open google chrome then enter http://localhost:6006/
I hope to run these 5 steps automatically and hope tensorboard run together when I am traning the model so that I can monitor the training process. I can add the following system call before entering the training process
os.system('C:/CodingSoftware/Anaconda3_py3.5/envs/tensorflow-gpu/python -m tensorflow.tensorboard --logdir='+tf_log_dir)
However the code stop at showing "Starting TensorBoard b'47' at http://0.0.0.0:6006"
Thank you Ayushya below. With your first method, it does not run in parallel. If I start P1 first, it still requires Press CTRL+C before entering the rest of the code
log_dir='E:/PythonCode/BayesianLinearStrategy/LOG'
p1 = Process(target=startTensorboard(log_dir))
p1.start()
p2 = Process(target=RunTFCode)
p2.start()