summaryrefslogtreecommitdiff
path: root/options/test_options.py
diff options
context:
space:
mode:
authorjunyanz <junyanz@berkeley.edu>2017-04-18 03:38:47 -0700
committerjunyanz <junyanz@berkeley.edu>2017-04-18 03:38:47 -0700
commitc99ce7c4e781712e0252c6127ad1a4e8021cc489 (patch)
treeba99dfd56a47036d9c1f18620abf4efc248839ab /options/test_options.py
first commit
Diffstat (limited to 'options/test_options.py')
-rw-r--r--options/test_options.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/options/test_options.py b/options/test_options.py
new file mode 100644
index 0000000..c4ecff6
--- /dev/null
+++ b/options/test_options.py
@@ -0,0 +1,12 @@
+from .base_options import BaseOptions
+
+class TestOptions(BaseOptions):
+ def initialize(self):
+ BaseOptions.initialize(self)
+ self.parser.add_argument('--ntest', type=int, default=float("inf"), help='# of test examples.')
+ self.parser.add_argument('--results_dir', type=str, default='./results/', help='saves results here.')
+ self.parser.add_argument('--aspect_ratio', type=float, default=1.0, help='aspect ratio of result images')
+ self.parser.add_argument('--phase', type=str, default='test', help='train, val, test, etc')
+ self.parser.add_argument('--which_epoch', type=str, default='latest', help='which epoch to load? set to latest to use latest cached model')
+ self.parser.add_argument('--how_many', type=int, default=50, help='how many test images to run')
+ self.isTrain = False