MCPcopy Create free account
hub / github.com/chenhaoxing/HDNet / modify_commandline_options

Method modify_commandline_options

models/base_model.py:46–56  ·  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

44
45 @staticmethod
46 def modify_commandline_options(parser, is_train):
47 """Add new model-specific options, and rewrite default values for existing options.
48
49 Parameters:
50 parser -- original option parser
51 is_train (bool) -- whether training phase or test phase. You can use this flag to add training-specific or test-specific options.
52
53 Returns:
54 the modified parser.
55 """
56 return parser
57
58 @abstractmethod
59 def set_input(self, input):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected