forked from brando90/ultimate-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tb.sh
25 lines (19 loc) · 955 Bytes
/
run_tb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# install tensorboard, and tensorboard
# conda install -y -c conda-forge tensorboard
# doesn't seem to work...? conda install -y -c conda-forge tensorboard
# Requires the latest pip
#pip install --upgrade pip
## Current stable release for CPU and GPU
#pip install tensorflow
echo "Friendly reminder to download the logs from remote first"
#alias tbb="sh ${HOME}/ultimate-utils/run_tb.sh"
# - create the cmd that does the prefix substitution (once given a string as an argument at thend)
path2cmd_that_puts_right_prefix=${HOME}/ultimate-utils/ultimate-utils-proj-src/execute_tensorboard.py
# - get the path from the local directory to the logs for your tb experiments
# the line bellow gets the output/string from the python command
local_dir2current_logs=$(python $path2cmd_that_puts_right_prefix $1)
# -- run tb using the remote data but locally
echo HOME=$HOME
echo $local_dir2current_logs
tensorboard --logdir $local_dir2current_logs