1- """This script contains the test options for Deep3DFaceRecon_pytorch
2- """
1+ """This script contains the test options for Deep3DFaceRecon_pytorch"""
32
43from .base_options import BaseOptions
54
@@ -12,10 +11,40 @@ class TestOptions(BaseOptions):
1211
1312 def initialize (self , parser ):
1413 parser = BaseOptions .initialize (self , parser ) # define shared options
15- parser .add_argument ('--phase' , type = str , default = 'test' , help = 'train, val, test, etc' )
16- parser .add_argument ('--dataset_mode' , type = str , default = None , help = 'chooses how datasets are loaded. [None | flist]' )
17- parser .add_argument ('--img_folder' , type = str , default = 'examples' , help = 'folder for test images.' )
18- parser .add_argument ('--no_visualize' , '--no_vis' , '--no_viz' , action = 'store_true' , help = 'do not render/visualize the results.' )
14+ parser .add_argument (
15+ "--phase" ,
16+ type = str ,
17+ default = "test" ,
18+ help = "train, val, test, etc" ,
19+ )
20+ parser .add_argument (
21+ "--dataset_mode" ,
22+ type = str ,
23+ default = None ,
24+ help = "chooses how datasets are loaded. [None | flist]" ,
25+ )
26+ parser .add_argument (
27+ "--img_folder" , type = str , default = "examples" , help = "folder for test images."
28+ )
29+
30+ group = parser .add_mutually_exclusive_group (required = False )
31+ group .add_argument (
32+ "--visualize" ,
33+ "--vis" ,
34+ "--viz" ,
35+ dest = "do_visualize" ,
36+ action = "store_true" ,
37+ default = True ,
38+ help = "render/visualize the results." ,
39+ )
40+ group .add_argument (
41+ "--no_visualize" ,
42+ "--no_vis" ,
43+ "--no_viz" ,
44+ dest = "do_visualize" ,
45+ action = "store_false" ,
46+ help = "do not render/visualize the results." ,
47+ )
1948
2049 # Dropout and Batchnorm has different behavior during training and test.
2150 self .isTrain = False
0 commit comments