From 0b8e19c1cc8ad03805d4ca68f32df6e4806a36e8 Mon Sep 17 00:00:00 2001
From: natanielruiz <nataniel777@hotmail.com>
Date: 星期五, 08 九月 2017 11:15:10 +0800
Subject: [PATCH] Finetune layer working

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