I am using TensorFlow with Keras to train a classifier and I tried adding TensorBoard as a callback parameter to the fit
method. I have installed TensorFlow 2.0 correctly and am also able to load TensorBoard by calling %load_ext tensorboard
. I am working on Google Colab and thought I would be able to save the logs to Google Drive during training, so that I can visualize them with TensorBoard. However, when I try to fit the data to the model along with the TensorBoard callback, I get this error:
File system scheme '[local]' not implemented (file: '/content/drive/My Drive/KInsekten/logs/20200409-160657/train') Encountered when executing an operation using EagerExecutor.
I initialized the TensorBoard callback like this:
logs_base_dir = "/content/drive/My Drive/KInsekten/logs/"
if not os.path.exists(logs_base_dir):
os.mkdir(logs_base_dir)
log_dir = logs_base_dir + datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
tensor_board = tf.keras.callbacks.TensorBoard(log_dir = log_dir, histogram_freq = 1,
write_graph = True, write_images = True)