MCPcopy Create free account
hub / github.com/NVIDIA/vid2vid / TestOptions

Class TestOptions

options/test_options.py:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class TestOptions(BaseOptions):
5 def initialize(self):
6 BaseOptions.initialize(self)
7 self.parser.add_argument('--ntest', type=int, default=float("inf"), help='# of test examples.')
8 self.parser.add_argument('--results_dir', type=str, default='./results/', help='saves results here.')
9 self.parser.add_argument('--aspect_ratio', type=float, default=1.0, help='aspect ratio of result images')
10 self.parser.add_argument('--phase', type=str, default='test', help='train, val, test, etc')
11 self.parser.add_argument('--which_epoch', type=str, default='latest', help='which epoch to load? set to latest to use latest cached model')
12 self.parser.add_argument('--how_many', type=int, default=300, help='how many test images to run')
13 self.parser.add_argument('--use_real_img', action='store_true', help='use real image for first frame')
14 self.parser.add_argument('--start_frame', type=int, default=0, help='frame index to start inference on')
15 self.isTrain = False

Callers 1

test.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected