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

Method modify_commandline_options

models/base_model.py:58–68  ·  view source on GitHub ↗

Add new model-specific options, and rewrite default values for existing options. Parameters: parser -- original option parser is_train (bool) -- whether training phase or test phase. You can use this flag to add training-specific or test-specific options.

(parser, is_train)

Source from the content-addressed store, hash-verified

56
57 @staticmethod
58 def modify_commandline_options(parser, is_train):
59 """Add new model-specific options, and rewrite default values for existing options.
60
61 Parameters:
62 parser -- original option parser
63 is_train (bool) -- whether training phase or test phase. You can use this flag to add training-specific or test-specific options.
64
65 Returns:
66 the modified parser.
67 """
68 return parser
69
70 @abstractmethod
71 def set_input(self, input):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected