【问题标题】:tensorflow-dataset- How to make our own dataset with tfds format?tensorflow-dataset-如何使用 tfds 格式制作我们自己的数据集?
【发布时间】:2019-12-11 17:10:48
【问题描述】:

在 TensorFlow 教程中,我遇到了一个从 TensorFlow 数据集加载数据集的代码。

dataset, metadata = tfds.load('cycle_gan/horse2zebra',
                              with_info=True, as_supervised=True)
train_horses, train_zebras = dataset['trainA'], dataset['trainB']
test_horses, test_zebras = dataset['testA'], dataset['testB']

但是,我想加载不是来自 TensorFlow 数据集的我自己的数据集。 在收集了自己的数据集后,我不知道如何加载我的数据集并将其处理为与 TensorFlow tfds 相同的格式。

谁能教我怎么做? 我的数据集文件夹也有相同的格式:trainA、trainB、testA、testB。

【问题讨论】:

    标签: tensorflow tensorflow-datasets


    【解决方案1】:

    请按照本教程将数据集添加到 TFDS。

    https://github.com/tensorflow/datasets/blob/master/docs/add_dataset.md

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-14
    • 2018-04-02
    相关资源
    最近更新 更多