Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tensorflow .record和.tfrecord之间的差异_Tensorflow_Roboflow - Fatal编程技术网

Tensorflow .record和.tfrecord之间的差异

Tensorflow .record和.tfrecord之间的差异,tensorflow,roboflow,Tensorflow,Roboflow,我下载了一个数据集,其中包含test.tfrecord和train.tfrecord 它与test.record和train.record相同吗?是的,文件扩展名不重要,它们在同一个文件中。你可以把它想象成一个zip文件,尽管它的结构可以是自由的 这些特定的API用于Tensorflow对象检测API,该API期望内部的数据以如下特定结构和顺序排列: tf_example = tf.train.Example(features=tf.train.Features(feature={

我下载了一个数据集,其中包含test.tfrecord和train.tfrecord


它与test.record和train.record相同吗?

是的,文件扩展名不重要,它们在同一个文件中。你可以把它想象成一个
zip
文件,尽管它的结构可以是自由的

这些特定的API用于Tensorflow对象检测API,该API期望内部的数据以如下特定结构和顺序排列:

tf_example = tf.train.Example(features=tf.train.Features(feature={
        'image/height': dataset_util.int64_feature(height),
        'image/width': dataset_util.int64_feature(width),
        'image/filename': dataset_util.bytes_feature(filename),
        'image/source_id': dataset_util.bytes_feature(filename),
        'image/encoded': dataset_util.bytes_feature(encoded_jpg),
        'image/format': dataset_util.bytes_feature(image_format),
        'image/object/bbox/xmin': dataset_util.float_list_feature(xmins),
        'image/object/bbox/xmax': dataset_util.float_list_feature(xmaxs),
        'image/object/bbox/ymin': dataset_util.float_list_feature(ymins),
        'image/object/bbox/ymax': dataset_util.float_list_feature(ymaxs),
        'image/object/class/text': dataset_util.bytes_list_feature(classes_text),
        'image/object/class/label': dataset_util.int64_list_feature(classes),
    }))
有一个完整的教程