Tensorboard 检查点:访问被拒绝.;输入/输出错误

编程入门 行业动态 更新时间:2024-10-28 08:29:00
本文介绍了Tensorboard 检查点:访问被拒绝.;输入/输出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试通过以下方式在 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屋!

更多推荐

[db:关键词]

本文发布于:2023-05-01 00:46:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1401821.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:检查点   被拒   错误   Tensorboard

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!