summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-07-16 17:58:25 +0200
committerJules Laplace <julescarbon@gmail.com>2018-07-16 17:58:25 +0200
commit1d06b8ee449ed6d80f71892caacad7d4fc764f82 (patch)
tree7c533272c4e28907ff94b2751932f20bd0a84b51
parentb1ac6476483186dafbd4e3f5e1d6a269388d7f59 (diff)
transform options
-rw-r--r--options/dataset_options.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/options/dataset_options.py b/options/dataset_options.py
index 1692766..74e6bdc 100644
--- a/options/dataset_options.py
+++ b/options/dataset_options.py
@@ -274,6 +274,28 @@ class DatasetOptions(BaseOptions):
help='convert image to grayscale first'
)
+ ### TRANSFORM
+
+ self.parser.add_argument(
+ '--transform',
+ action='store_true',
+ help='transform the image'
+ )
+
+ self.parser.add_argument(
+ '--rotate',
+ default=0.0,
+ type=float,
+ help='rotation'
+ )
+
+ self.parser.add_argument(
+ '--scale',
+ default=1.0,
+ type=float,
+ help='scaling'
+ )
+
### HSL
self.parser.add_argument(