【问题标题】:Set multiple tfrecord into config file of Tensorflow Object Detection API将多个 tfrecord 设置到 Tensorflow 对象检测 API 的配置文件中
【发布时间】:2020-02-21 14:35:19
【问题描述】:

我有几个 tfrecord 分成 5 个分片

例如) train-1.tfrecord train-2.tfrecord train-3.tfrecord train-4.tfrecord train-5.tfrecord

我想使用所有的 tfrecord。

我的检测模型是 Faster-rcnn(resnet101)

例如) 模型/研究/object_detection/samples/configs/faster_rcnn_resnet101.config

我可以这样使用吗?

.. input_path: "/path/to/train-*.tfrecord" ..

【问题讨论】:

    标签: tensorflow object-detection-api tfrecord


    【解决方案1】:

    是的,您可以在您提供的文件路径中使用glob patterns(或路径,因为您也可以提供多个路径)。虽然我找不到关于它的明确文档,但查看source code,您可以看到输入路径扩展为tf.gfile.Glob

    filenames = tf.gfile.Glob(input_files)
    

    所以您的示例应该按预期工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-31
      • 2019-02-24
      相关资源
      最近更新 更多