Created
June 16, 2020 17:22
-
-
Save sgodfrey66/0aeeb99ab5192ae0408bdc5a62a41cf1 to your computer and use it in GitHub Desktop.
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
# Create a TensorBoard log directory for input images | |
init_time=dt.datetime.now(tz.timezone('US/Pacific')).strftime("%b%d_%H:%M") | |
images_logs='input_images' | |
image_log='{}'.format(os.path.join(logs_dir,images_logs)) | |
# Create a TensorBoard log directory for training and evaluation data | |
model_log='{}_{}'.format(os.path.join(logs_dir,model_name),init_time) | |
# Create a TensorBoard log directory for the confusion matrix | |
cm_log='{}_{}/conf_matrix'.format(os.path.join(logs_dir,model_name),init_time) | |
# Define the confusion matrix logging function | |
def cm_logger(epoch, logs): | |
with cm_file_writer.as_default(): | |
tf.summary.image(name=i_name, data=cm_image, step=epoch) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment