深度学习报错记录02_TensorBoard 可视化错误

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')
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值