InvalidargumentError:输入为空
作为大学任务的一部分,我正在培训一辆变异的自动编码器,但不幸的是,我很早就卡住了。
我使用以下代码片段可视化我下载的数据集。
fig, axes = plt.subplots(5,5, figsize = (14,14))
sample = training_dataset.unbatch().take(25)
sample = [image for image in sample]
idx = 0
for row in range(5):
for column in range(5):
axes[row, column].imshow(sample[idx])
idx+=1
但是我遇到以下错误:
InvalidArgumentError: Input is empty.
[[{{node DecodeJpeg}}]] [Op:IteratorGetNext]
关于导致这一点的原因有什么想法?提前致谢
I am training a variational autoencoder as part of a college assignment but unfortunately I got stuck very early on.
I used the following code snippet to visualize the data set that I had downloaded.
fig, axes = plt.subplots(5,5, figsize = (14,14))
sample = training_dataset.unbatch().take(25)
sample = [image for image in sample]
idx = 0
for row in range(5):
for column in range(5):
axes[row, column].imshow(sample[idx])
idx+=1
But I am getting the following error:
InvalidArgumentError: Input is empty.
[[{{node DecodeJpeg}}]] [Op:IteratorGetNext]
Any idea as to what is causing this? Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论