From c99ce7c4e781712e0252c6127ad1a4e8021cc489 Mon Sep 17 00:00:00 2001 From: junyanz Date: Tue, 18 Apr 2017 03:38:47 -0700 Subject: first commit --- options/test_options.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 options/test_options.py (limited to 'options/test_options.py') 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 -- cgit v1.2.3-70-g09d2