From 653b3608ebe6272510b4c66f445f6f552fdc9ec9 Mon Sep 17 00:00:00 2001 From: natanielruiz <nataniel777@hotmail.com> Date: 星期一, 11 九月 2017 05:53:10 +0800 Subject: [PATCH] Starting serious experiment without regression or iterative finetuning --- code/datasets.py | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/code/datasets.py b/code/datasets.py index f73c0a1..f24f063 100644 --- a/code/datasets.py +++ b/code/datasets.py @@ -60,14 +60,14 @@ img = img.transpose(Image.FLIP_LEFT_RIGHT) # Rotate? - rnd = np.random.random_sample() - if rnd < 0.5: - if roll >= 0: - img = img.rotate(30) - roll -= 30 - else: - img = img.rotate(-30) - roll += 30 + # rnd = np.random.random_sample() + # if rnd < 0.5: + # if roll >= 0: + # img = img.rotate(30) + # roll -= 30 + # else: + # img = img.rotate(-30) + # roll += 30 # Bin values bins = np.array(range(-99, 102, 3)) -- Gitblit v1.8.0