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

Method modify_commandline_options

data/base_dataset.py:33–43  ·  view source on GitHub ↗

Add new dataset-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

31
32 @staticmethod
33 def modify_commandline_options(parser, is_train):
34 """Add new dataset-specific options, and rewrite default values for existing options.
35
36 Parameters:
37 parser -- original option parser
38 is_train (bool) -- whether training phase or test phase. You can use this flag to add training-specific or test-specific options.
39
40 Returns:
41 the modified parser.
42 """
43 return parser
44
45 @abstractmethod
46 def __len__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected