【问题标题】:TensorFlow Object Detection API: specifying multiple data_augmentation_optionsTensorFlow Object Detection API:指定多个 data_augmentation_options
【发布时间】:2019-04-22 07:34:38
【问题描述】:

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

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

或者像这样:

data_augmentation_options {
  random_horizontal_flip {
  }
  ssd_random_crop {
  }
}

在对象检测管道文件中?

models repo 中的所有样本都使用第一种格式,但也接受第二种格式。

【问题讨论】:

    标签: tensorflow object-detection data-augmentation


    【解决方案1】:

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

    虽然第二个不会破坏管道,但它只会采用第一个指定的选项。 您可以通过检查 model_dir 中创建的 pipeline.config 自己验证这一点。 原因是data_augmentation_optionsPreprocessingStep 类型,它由oneof preprocessing_step 组成。注意oneof

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

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

    等等,随你喜欢。

    【讨论】:

      猜你喜欢
      • 2018-01-28
      • 1970-01-01
      • 2018-01-14
      • 2018-07-28
      • 1970-01-01
      • 1970-01-01
      • 2019-12-08
      • 2018-07-30
      • 2019-09-06
      相关资源
      最近更新 更多