Tensorboard 检查点:访问被拒绝.;输入/输出错误 [英] Tensorboard checkpoint : Access is denied. ; Input/output error

查看:31
本文介绍了Tensorboard 检查点:访问被拒绝.;输入/输出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过以下方式在 Jupyter anaconda 中创建张量板.write_images = True 时发生错误,否则,此代码工作正常.发生这种情况的任何原因?

I am trying to create a tensor board in Jupyter anaconda the following way. The error occurs when write_images = True, otherwise, this code works fine. Any reason why this happens?

log_dir="logs\\fit\\" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S")

tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir, 
                                                      histogram_freq=1, 
                                                      write_graph = True,
                                                      write_images = False
                                                      update_freq = 'epoch'
                                                      profile_batch = 3,
                                                      embeddings_freq=1
                                                     )

我明白了

UnknownError: Failed to rename: logs\20200219-202538\train\checkpoint.tmp67d5ca45d1404cc584a86cf42d2761d3 to: logs\20200219-202538\train\checkpoint : Access is denied.
; Input/output error

它发生在哪个时代似乎是随机的.

Seems to be random on which epoch it occurs.

推荐答案

我遇到了类似的事情,似乎您想要安全检查点的路径,这是指 tensorboord 不可用或被拒绝.你知道colab吗?我建议你复制你的代码并在那里运行你的训练(只有当你的数据集不是太大时).您可以在 Google Drive 中复制您的数据集并使用 colab 进行访问.如果它在 colab 中工作,那么您的代码可能没有问题,但可能与您的 anaconda 限制有关.安装 Google Drive (Colab)Colab 基础知识

I had something similar, it seems like the path where you want to safe the checkpoint, which is referred to tensorbaord is not available or denied. Do you know colab ? I would suggest you copy your code and run your training up there (only if your dataset isnt too large). You can copy your dataset in your Google Drive and access with colab. If it is working in colab, than you may dont have a problem with your code, but propably with your anaconda restrictions. Mount Google Drive (Colab), Colab basics

我知道我无法解决您的问题,但使用多汁的免费 Cloud GPU 可能会帮助您并提高您的学习速度.

I know i couldnt solve your problem, but propably this can help you and boost your learning speed with a juicy free Cloud GPU.

这篇关于Tensorboard 检查点:访问被拒绝.;输入/输出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆