浏览代码

Remove flip() from preprocess() because the data will flip() at flip_augmentation()

nagadomi 8 年之前
父节点
当前提交
0517605d0d
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      lib/pairwise_transform_utils.lua

+ 0 - 2
lib/pairwise_transform_utils.lua

@@ -47,7 +47,6 @@ function pairwise_transform_utils.preprocess(src, crop_size, options)
    if box_only then
       local mod = 2 -- assert pos % 2 == 0
       dest = pairwise_transform_utils.crop_if_large(dest, math.max(crop_size * 2, options.max_size), mod)
-      dest = data_augmentation.flip(dest)
       dest = data_augmentation.color_noise(dest, options.random_color_noise_rate)
       dest = data_augmentation.overlay(dest, options.random_overlay_rate)
       dest = data_augmentation.unsharp_mask(dest, options.random_unsharp_mask_rate)
@@ -55,7 +54,6 @@ function pairwise_transform_utils.preprocess(src, crop_size, options)
    else
       dest = pairwise_transform_utils.random_half(dest, options.random_half_rate, options.downsampling_filters)
       dest = pairwise_transform_utils.crop_if_large(dest, math.max(crop_size * 2, options.max_size))
-      dest = data_augmentation.flip(dest)
       dest = data_augmentation.blur(dest, options.random_blur_rate,
 				    options.random_blur_size, 
 				    options.random_blur_min,