MCPcopy Create free account
hub / github.com/JunlinHan/DCLGAN / initialize

Method initialize

options/test_options.py:10–22  ·  view source on GitHub ↗
(self, parser)

Source from the content-addressed store, hash-verified

8 """
9
10 def initialize(self, parser):
11 parser = BaseOptions.initialize(self, parser) # define shared options
12 parser.add_argument('--results_dir', type=str, default='./results/', help='saves results here.')
13 parser.add_argument('--phase', type=str, default='test', help='train, val, test, etc')
14 # Dropout and Batchnorm has different behavioir during training and test.
15 parser.add_argument('--eval', action='store_true', help='use eval mode during test time.')
16 # Set the default = 5000 to test the whole test set.
17 parser.add_argument('--num_test', type=int, default=5000, help='how many test images to run')
18
19 # To avoid cropping, the load_size should be the same as crop_size
20 parser.set_defaults(load_size=parser.get_default('crop_size'))
21 self.isTrain = False
22 return parser

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected