InvalidargumentError:输入为空

发布于 2025-01-19 20:12:20 字数 544 浏览 1 评论 0原文

作为大学任务的一部分,我正在培训一辆变异的自动编码器,但不幸的是,我很早就卡住了。

我使用以下代码片段可视化我下载的数据集。

    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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文