TensorFlow 对象检测 API : specifying multiple data_augmentation_options

标签 tensorflow object-detection data-augmentation

我想知道像这样指定数据增强之间是否有任何区别:

data_augmentation_options {
  random_horizontal_flip {
  }
}
data_augmentation_options {
  ssd_random_crop {
  }
}

或者像这样:
data_augmentation_options {
  random_horizontal_flip {
  }
  ssd_random_crop {
  }
}

在对象检测管道文件中?

模型存储库中的所有示例都使用第一种格式,但也接受第二种格式。

最佳答案

唯一正确的格式是第一个。

虽然第二个不会破坏管道,但它只会采用第一个指定的选项。
您可以通过检查在 model_dir 中创建的 pipeline.config 来验证这一点。
原因是data_augmentation_options类型为 PreprocessingStep其中包含一个 oneof preprocessing_step .请注意 oneof .

另一方面,data_augmentation_optionsrepeated ,因此您可以指定

data_augmentation_options {
  augmentation_option_1 {
  }
}
data_augmentation_options {
  augmentation_option_2 {
  }
}
...

等等,只要你喜欢。

关于TensorFlow 对象检测 API : specifying multiple data_augmentation_options,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53383151/

相关文章:

python - TF.Learn DNNClassifier 和 LinearClassifier 的准确性问题

tensorflow - Tensorflow 1.x 如何遍历给定 Tensor 的计算图?

gpu - Tensorflow 不使用 GPU

machine-learning - 您是否 "count"图像数量或地面实况边界框数量的数据集大小?

python - Keras 的 ImageDataGenerator 中的 shear 究竟做了什么?

python - 是否可以在 transform.compose 中使用非 pytorch 增强

tensorflow - 了解更高维度的密集层的输出

c++ - 霍夫环检测的确定性

object-detection - MobileNet-SSD输入分辨率

opencv - python : time stretch wave files - comparison between three methods