1
0
Fork 0
mirror of synced 2024-06-13 08:24:30 +12:00

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

This commit is contained in:
nagadomi 2016-09-24 06:22:30 +09:00
parent f65132dadb
commit 0517605d0d

View file

@ -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,