Updated tqdm counting issue, added script for setting up environment on head-node

This commit is contained in:
AntreasAntoniou 2018-02-09 22:01:22 +00:00
parent ba7b5387ad
commit 85308196d3
6 changed files with 25 additions and 5 deletions

View File

@ -83,7 +83,7 @@ with tf.Session() as sess:
continue_from_epoch)) # restore previous graph to continue operations continue_from_epoch)) # restore previous graph to continue operations
best_val_accuracy = 0. best_val_accuracy = 0.
with tqdm.tqdm(total=epochs) as epoch_pbar: with tqdm.tqdm(total=epochs - start_epoch) as epoch_pbar:
for e in range(start_epoch, epochs): for e in range(start_epoch, epochs):
total_c_loss = 0. total_c_loss = 0.
total_accuracy = 0. total_accuracy = 0.

View File

@ -83,7 +83,7 @@ with tf.Session() as sess:
continue_from_epoch)) # restore previous graph to continue operations continue_from_epoch)) # restore previous graph to continue operations
best_val_accuracy = 0. best_val_accuracy = 0.
with tqdm.tqdm(total=epochs) as epoch_pbar: with tqdm.tqdm(total=epochs-start_epoch) as epoch_pbar:
for e in range(start_epoch, epochs): for e in range(start_epoch, epochs):
total_c_loss = 0. total_c_loss = 0.
total_accuracy = 0. total_accuracy = 0.

View File

@ -83,7 +83,7 @@ with tf.Session() as sess:
continue_from_epoch)) # restore previous graph to continue operations continue_from_epoch)) # restore previous graph to continue operations
best_val_accuracy = 0. best_val_accuracy = 0.
with tqdm.tqdm(total=epochs) as epoch_pbar: with tqdm.tqdm(total=epochs - start_epoch) as epoch_pbar:
for e in range(start_epoch, epochs): for e in range(start_epoch, epochs):
total_c_loss = 0. total_c_loss = 0.
total_accuracy = 0. total_accuracy = 0.

View File

@ -0,0 +1,20 @@
#!/bin/sh
export CUDA_HOME=/opt/cuda-8.0.44
export CUDNN_HOME=/opt/cuDNN-6.0_8.0
export STUDENT_ID=sxxxxxx
export LD_LIBRARY_PATH=${CUDNN_HOME}/lib64:${CUDA_HOME}/lib64:$LD_LIBRARY_PATH
export LIBRARY_PATH=${CUDNN_HOME}/lib64:$LIBRARY_PATH
export CPATH=${CUDNN_HOME}/include:$CPATH
export PATH=${CUDA_HOME}/bin:${PATH}
export PYTHON_PATH=$PATH
# Activate the relevant virtual environment:
source /home/${STUDENT_ID}/miniconda3/bin/activate mlp

View File

@ -84,7 +84,7 @@ with tf.Session() as sess:
continue_from_epoch)) # restore previous graph to continue operations continue_from_epoch)) # restore previous graph to continue operations
best_val_accuracy = 0. best_val_accuracy = 0.
with tqdm.tqdm(total=epochs) as epoch_pbar: with tqdm.tqdm(total=epochs - start_epoch) as epoch_pbar:
for e in range(start_epoch, epochs): for e in range(start_epoch, epochs):
total_c_loss = 0. total_c_loss = 0.
total_accuracy = 0. total_accuracy = 0.

View File

@ -83,7 +83,7 @@ with tf.Session() as sess:
continue_from_epoch)) # restore previous graph to continue operations continue_from_epoch)) # restore previous graph to continue operations
best_val_accuracy = 0. best_val_accuracy = 0.
with tqdm.tqdm(total=epochs) as epoch_pbar: with tqdm.tqdm(total=epochs - start_epoch) as epoch_pbar:
for e in range(start_epoch, epochs): for e in range(start_epoch, epochs):
total_c_loss = 0. total_c_loss = 0.
total_accuracy = 0. total_accuracy = 0.