深度学习报错记录02_TensorBoard 可视化错误
方法二:改为绝对路径,以下三种命令都是可行的。意思就是无法从事件文件中加载出任何数据。方法四:使用其他浏览器打开网页(谷歌)TensorFlow 没有安装。方法三:更改端口号+绝对路径。首先确定路径不含中文。
01. TensorFlow installation not found - running with reduced feature set.
(smy) D:\00_learn>tensorboard --logdir=logs
TensorFlow installation not found - running with reduced feature set.
Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all
TensorBoard 2.17.0 at http://localhost:6006/ (Press CTRL+C to quit)
TensorFlow 没有安装
conda install tensorflow
02. No dashboards are active for the current data set.

意思就是无法从事件文件中加载出任何数据。
首先确定路径不含中文
方法一:更改端口号
tensorboard --logdir=logs --port=6070
方法二:改为绝对路径,以下三种命令都是可行的
tensorboard --logdir=D:\00_learn\learn\logs
tensorboard --logdir="D:\00_learn\learn\logs"
tensorboard --logdir "D:\00_learn\learn\logs"
方法三:更改端口号+绝对路径
tensorboard --logdir "D:\00_learn\learn\logs" --port=6070
方法四:使用其他浏览器打开网页(谷歌)
如果是以下这种错误,可能是代码里含有空格(也可以按以上方法尝试解决)
tensorboard: error: argument {serve}: invalid choice: ‘D:\00_learn\logs_maxpool’ (choose from ‘serve’)
03. 使用 Image 打开图片出错
RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0
将
img_PIL = Image.open("images/dog.jpg")
改为
img_PIL = Image.open("images/dog.jpg").convert('RGB')
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)